cancel
Showing results for 
Search instead for 
Did you mean: 

Forum bug: code snippet changes after editing post

If I have the following code snippet:

 

 

@Echo OFF

 

 

And I edit my post it changes to:

 

 

 OFF

 

 

In addition after edition the post it will add extra new lines around the snippet for each edit.

Syntax highlighting is good, but I'm missing a plain text option in case the language is not listed.

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.
6 REPLIES 6
Andrew Neil
Evangelist III

@unsigned_char_array wrote:

 after edition the post it will add extra new lines around the snippet for each edit.


Yes, this is annoying.

 


@unsigned_char_array wrote:

missing a plain text option in case the language is not listed.


Absolutely!

There is often a need to have just monospaced plain text - no syntax highlighting.

eg, build output; ASCII Art

 

Andrew Neil
Evangelist III

Just trying it:

@Echo OFF

@Andrew Neil wrote:

Just trying it:

 

@Echo OFF

 


This is what I actually entered:

AndrewNeil_0-1713951361998.png

So, in my case, it still shows the "@Echo" - but it's changed the case!

Yes with me it changed the case too. It was all caps when I entered it. I think it confuses it for a username as the at symbol is used to reference users. But that should be ignored inside a code block. And with subsequent editing the at and the Echo will both disappear leaving the space and the off.

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

Ah yes - there is, indeed, as user named 'Echo':

AndrewNeil_0-1713953941772.png

:face_with_rolling_eyes:

LOL. I didn't even check. Good thing there is no user named DROP TABLE.

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.