Anyway to collapse line comments // ?

All questions regarding lexer highlighting schemes are discussed here...
Locked
runsun
Posts: 15
Joined: 16.12.2015 01:43

Anyway to collapse line comments // ?

Post by runsun »

Is it possible to make the following single-line comments collapsible ?

blah blah ...
// comment line 1
// comment line 2
// comment line 3
// comment line 4
blah blah blan ...

to:

blah blah ...
[+] (// comment line1 )
blah blah blan ...
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Yes: example is Pascal, 2 rules --"Block comment nnnnnnnnnnnnn", copy both, and link 1 to 2
Locked