Jump to content

CodeMirror Syntax in Posts


Lisownik

Recommended Posts

Posted

Code in posts should have a codemirror syntax like in editor. When code is saved and embed in the post, the syntax is other and have a minor bugs, like brackets, dots, commas, etc.

Posted

I'm not sure I follow. Are you reporting a bug? You can use the 'code' button on the editor to insert code (and specify the language if you wish), and this should be retained when viewing posts, and when editing posts. We use prettify to make the code presented nicer when viewing the post, and it's a fairly well tested and established package.

If you're experiencing specific issues I would encourage you to submit a ticket so we can take a look.

Posted

I know that. Ok, I will send a ticket 😉

But I will send screenshot here too.

image.thumb.png.630136e269423ce87898265baf52b584.png

It's not possible to have a the same syntax in code editor and post content, here is minor "bugs" with commas, values, etc.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...