0

Update how code is styled/displayed

Code included in text content in Populi is not formatted as clearly as it could be. It is the same color as text, and is sometimes cut off if the lines of code are too long.

I'd like to request that code be formatted to have a different background color so that it is easier to distinguish from other textual content. This would be useful both for code included `inline` a paragraph of text, and for code within larger code blocks.

Actually, the code block in this WYSIWYG editor has a good option as well: 

This code block has a different background color and a scroll bar!

Here is a screenshot of how code is currently displayed in Populi:

Here is the same content in GitHub:

And even if we can't support the colored keywords, something like this example from Medium would be an improvement:

2 comments

Please sign in to leave a comment.