Lisownik Posted September 24, 2018 Posted September 24, 2018 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.
bfarber Posted September 24, 2018 Posted September 24, 2018 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.
Lisownik Posted September 25, 2018 Author Posted September 25, 2018 I know that. Ok, I will send a ticket 😉 But I will send screenshot here too. It's not possible to have a the same syntax in code editor and post content, here is minor "bugs" with commas, values, etc.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.