Error in TCL syntax highlighting
-
I’ve tried multiple settings in langs.xml (and even tweaked langs.model.xml) but can’t solve these THREE problems:
(1) upgrading does NOT keep my color settings/formatting for TCL; all the fonts, sizing, and colors are reset to defaults. :(
(2) “#” is a comment line and runs as a comment until a newline is found. However, TCL presents a quirk: a line that end with backslash will CONTINUE the comment!
This is a comment line\
and this is PART OF THE COMMENT LINE ALSO!!
puts “This line isn’t a comment; it’s regular code.”This works in some versions of NotePad++, doesn’t in others. Current 7.5.9 or whatever the new one is fails; I have to continue to use 6.7.9.1 to maintain my stylings.
(3) When TWO comment characters are put together, the styler DOES NOT RECOGNIZE IT AS A COMMENT ENY MORE until a newline+newline is found
################# <— Not seen as a comment
Stop editing! # <— Not seen as a comment
################# <— Not seen as a comment
[blank line]# # # # # # # # # # # # # # # # # # # # # # # # # # # # <— IS seen as a comment
Respect all intended TABS within variable definitions # <— is seen as a comment
All marker tags are left-flushed # <— is seen as a comment
# # # # # # # # # # # # # # # # # # # # # # # # # # # # <— is seen as a comment
################ <— Seen as a comment
Stop editing! # <— Seen as a comment
################# <— NOT seen as a comment
[blank line]# # # # # # # # # # # # # # # # # # # # # # # # # # # # <— IS seen as a comment
Respect all intended TABS within variable definitions # <— is seen as a comment
All marker tags are left-flushed # <— is seen as a comment
# # # # # # # # # # # # # # # # # # # # # # # # # # # # <— is seen as a comment
The newline has to be DOUBLED or the “broken comment” problem continues …
(Blank line removed in this example)
################# <— Not seen as a commentStop editing! # <— Not seen as a comment
################# <— Not seen as a comment
# # # # # # # # # # # # # # # # # # # # # # # # # # # # <— NOT seen as a comment
Respect all intended TABS within variable definitions # <— NOT seen as a comment
All marker tags are left-flushed # <— NOT seen as a comment
# # # # # # # # # # # # # # # # # # # # # # # # # # # # <— NOT seen as a comment
[blank line]
#set debug_text true ; # Only set this if needed <== IS seen as a commentThe TCL styler for comments is broken.
-
Wow…when people type stuff in the Compose window and it shows really odd things in the Preview window…do they just keep going?? Or do they stop, scratch their head, and try to figure out why what they typed created such odd results? Hmmm…there’s this link that says COMPOSE ?…maybe I’ll click that and see what it says…maybe a code block could avoid all that craziness…