Browse Source

implement setMono data method

PHP-GTK3
yggverse 5 months ago
parent
commit
6d15d7b137
  1. 2
      src/Entity/Browser/Container/Tab/Page/Content.php
  2. 14
      src/Entity/Browser/Container/Tab/Page/Content/Data.php

2
src/Entity/Browser/Container/Tab/Page/Content.php

@ -202,7 +202,7 @@ class Content @@ -202,7 +202,7 @@ class Content
default:
$this->data->setPlain(
$this->data->setMono(
$response
);

14
src/Entity/Browser/Container/Tab/Page/Content/Data.php

@ -84,6 +84,20 @@ class Data @@ -84,6 +84,20 @@ class Data
);
}
public function setMono(
string $value
): void
{
$this->gtk->set_markup(
sprintf(
'<tt>%s</tt>',
htmlspecialchars(
$value
)
)
);
}
public function setGemtext(
string $value,
string | null &$title = null,

Loading…
Cancel
Save