Jump to content
Remy Lebeau

Pascal syntax highlighter treats backslash as escape character

Recommended Posts

Something that has been annoying me for awhile.  When posting a code snippet and choosing the Pascal syntax highlighter, backslashes are treated as C/C++ escape sequences, which throws off the coloring.  The actual Pascal language doesn't treat backslash as an escape character.  Can this be fixed?

  • Like 3

Share this post


Link to post
On 2/4/2022 at 12:31 PM, Remy Lebeau said:

The actual Pascal language doesn't treat backslash as an escape character.  Can this be fixed?

Good idea - I'll file an enhancement proposal that Pascal be fixed to treat backslash as an escape character. No more #13#10 in the era of Unicode... :classic_biggrin:

  • Haha 1

Share this post


Link to post
4 hours ago, Joseph MItzen said:

No more #13#10 in the era of Unicode... :classic_biggrin:

That's a strange way to write sLineBreak 🙂

 

  • Like 1
  • Haha 1

Share this post


Link to post
9 hours ago, Joseph MItzen said:

Good idea - I'll file an enhancement proposal that Pascal be fixed to treat backslash as an escape character.

:classic_blink::classic_blush::classic_tongue::classic_biggrin:

Share this post


Link to post

As for me, I'm honestly too lazy to select Pascal language every time in the combobox so leave default HTML (yeah, HTML is default on Delphi forum)

Share this post


Link to post
28 minutes ago, Fr0sT.Brutal said:

(yeah, HTML is default on Delphi forum)

This has already been brought up right at the start of this forum. If it were just a simple setting to be changed, I am pretty sure it would have been accomplished long ago.

Share this post


Link to post
2 hours ago, Uwe Raabe said:

If it were just a simple setting to be changed, I am pretty sure it would have been accomplished long ago.

Took me less than 5 minutes to find this and another 5 minutes to try it out with chrome dev tools.

  • Thanks 2

Share this post


Link to post
57 minutes ago, Stefan Glienke said:

Took me less than 5 minutes to find this and another 5 minutes to try it out with chrome dev tools.

Perhaps we should forward this to @Daniel

Share this post


Link to post

Thanks - it is now on my ToDo-List.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×