Why doesn't my Block Comment work?

Syntax highlighting, code folding, brace matching, code indenting, and function list

Why doesn't my Block Comment work?

Postby EllaDing » Mon Aug 16, 2004 6:09 am

Is it possible to specify same value for "Block Comment On" and "Block Comment Off"?
After I specify: Block Comment On = """ Block Comment Off = """.

I write:
"""
fasdfasfds;aldfkjs [This part can not change color]
"""

why?
User avatar
EllaDing
Newbie
 
Posts: 1
Joined: Sun Aug 15, 2004 11:00 pm

Re: Why doesn't my Block Comment work?

Postby pietzcker » Mon Aug 23, 2004 8:49 am

This is for Python, right?

I'm stuck with the same problem. I guess what UE does is:
It sees the first " and thinks, 'aha, string coming!", then it sees the second " and thinks, 'end of first string". Then it sees the third " and thinks 'OK, another string coming'. It now will color the rest of the current line gray (or whatever color has been defined for strings). As soon as the next line starts, it doesn't know that it still belongs to the string...

It seems to me that UE isn't currently capable of handling """ sequences. I tried Block Comment On '"""' and even """"" or \"\"\" but none of those worked.

Any other ideas?

Tim
User avatar
pietzcker
Master
Master
 
Posts: 241
Joined: Sun Aug 22, 2004 11:00 pm

Re: Why doesn't my Block Comment work?

Postby vicer » Mon Aug 23, 2004 2:24 pm

You can make it work by specifying: Block Comment On = space""" and Block Comment Off = """

Then this will work:
space"""
fasdfasfds;aldfkjs [This part does change color]
"""

Please notice the space before the three Block Comment On quotes is a space character. It seems like it doesn't work with the same value for On/Off.

/ve
User avatar
vicer
Newbie
 
Posts: 6
Joined: Sun Aug 22, 2004 11:00 pm

Re: Why doesn't my Block Comment work?

Postby vicer » Mon Aug 23, 2004 4:09 pm

The only problem is that it won't work on the beginning of a line! :-(

If anyone has got a solution for this, please let me know.

/ve
User avatar
vicer
Newbie
 
Posts: 6
Joined: Sun Aug 22, 2004 11:00 pm


Return to Syntax Highlighting