Proektsoftbg / Calcpad

Free and open source software for mathematical and engineering calculations.
https://calcpad.eu
MIT License
367 stars 45 forks source link

Format line when comment html tag is used #221

Open hildebrandopsj opened 1 year ago

hildebrandopsj commented 1 year ago

Hi Ned,

It's possible to format the line, similar to titles when we use ", but for ? I think this can be very useful when worksheet is too long.

Best regards

Proektsoftbg commented 1 year ago

Hi! I am sorry, but I am afraid I cannot understand. What and how to format?

hildebrandopsj commented 1 year ago

Hi, my bad, i forgot to use the code in markdown to display the tag.

In the code editor, when we use " to write titles, the background color turns green and the font are bold.

image

What about if the html tag: <!-- Comment --> have some type of change in the code window? I think this can be very useful when worksheet is too long.

Proektsoftbg commented 1 year ago

Aha! Thank you! Now I see.

Yes, I think it will look good. Probably, just some light gray neutral background. It will be a bit more difficult because the comment can span several lines. Currently, the highlighter process the code line by line. In this case, we will have to make it search through all lines down until we find the closing tag. :)

It would be much easier if we highlight only the starting and closing part without the interior. At least in the beginning.