try to add code folding for //[of]

Discuss syntax highlighting or submit new syntax files.
Post Reply
fred
Posts: 87
Joined: 02 Oct 2008 11:43
Location: The Netherlands

try to add code folding for //[of]

Post by fred »

I try to add folding for this kind:
Fold_Id //[of]
Fold_End //[cf]

After the open fold there is a : and text like this:
//[of]:Gui
this a code folding section
//[cf]

It works if i add by hand a space like
//[of] :Gui
and empty Symbols in the Syntax Editor.
Is there a correct setting for what i try?
I can live without it so not a problem just a question.
User avatar
Rickard Johansson
Site Admin
Posts: 6620
Joined: 19 Jul 2006 14:29

Post by Rickard Johansson »

Try adding

[FoldOptions]
Separators=:

and possibly add, at leased, ":" to symbols

Symbols=:
fred
Posts: 87
Joined: 02 Oct 2008 11:43
Location: The Netherlands

Post by fred »

Thank Rickard,
I used this:

[FoldOptions]
Separators=:

In the Options, Syntax i found why it doesn't work, removed the /
Symbols=,;.:()[]=-*^%<>#

I can live with that :)

Perhaps for the help file.
On the file tab, context menu, "Reload current document " does not refresh the Syntax definition in use, close the file and open the file (recent files).
Post Reply