mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 14:40:09 +01:00
fix: try something new for coloredtext
This commit is contained in:
parent
230aeb6abd
commit
19133bf440
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ class Pastedown extends ParsedownExtra {
|
||||||
if (preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
|
if (preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
|
||||||
{
|
{
|
||||||
$Block = array(
|
$Block = array(
|
||||||
'markup' => "<span class=\"greentext\">" . pp_html_escape($matches[0]) . "</span>",
|
'markup' => "<div class=\"greentext\">" . pp_html_escape($matches[0]) . "</div>",
|
||||||
'extent' => strlen($matches[0])
|
'extent' => strlen($matches[0])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ class Pastedown extends ParsedownExtra {
|
||||||
if (preg_match('/^<[ ]?(.*)/', $Line['text'], $matches))
|
if (preg_match('/^<[ ]?(.*)/', $Line['text'], $matches))
|
||||||
{
|
{
|
||||||
$Block = array(
|
$Block = array(
|
||||||
'markup' => "<span class=\"redtext\">" . pp_html_escape($matches[0]) . "</span>",
|
'markup' => "<div class=\"redtext\">" . pp_html_escape($matches[0]) . "</div>",
|
||||||
'extent' => strlen($matches[0])
|
'extent' => strlen($matches[0])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ class Pastedown extends ParsedownExtra {
|
||||||
if (preg_match('/^@[ ]?(.*)/', $Line['text'], $matches))
|
if (preg_match('/^@[ ]?(.*)/', $Line['text'], $matches))
|
||||||
{
|
{
|
||||||
$Block = array(
|
$Block = array(
|
||||||
'markup' => "<span class=\"purpletext\">" . pp_html_escape($matches[0]) . "</span>",
|
'markup' => "<div class=\"purpletext\">" . pp_html_escape($matches[0]) . "</div>",
|
||||||
'extent' => strlen($matches[0])
|
'extent' => strlen($matches[0])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue