Conversation
File preview
|
Would you please post before/after screenshots? What does it fix? |
|
@samdark for example, check |
|
IMO this should be handled in the same way as for PHP code: wrap content in |
|
@rob006 it's too good idea, but we don't have function/method to do this. |
|
To do what? |
|
@rob006 to
need replace only initial tabs\spaces in lines, in any case it's give same result ( |
|
You can just replace Line 153 in 6b40893 return Html::tag('code', strtr(nl2br(Html::encode($this->content)), [
' ' => ' ',
"\t" => ' ',
]));At least you're sure nothing else is affected by this change (your PR affects all modals - are you sure modals contain only code?) and style is consistent with PHP code (currently proportional font is used for non-PHP code snippets). |
nope, all modals -
wrap in |
Add styles for preview sources