Code Folding appears to be missing parts of files.

Solved bugs are moved into this topic...
sl23
Posts: 187
Joined: 29.01.2013 10:04

Re: Code Folding appears to be missing parts of files.

Post by sl23 »

Superb! Thank you! :D
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2892
Joined: 25.08.2021 18:15

Re: Code Folding appears to be missing parts of files.

Post by main Alexey »

seems, it's done.
win64 beta updated in this post:
https://github.com/Alexey-T/CudaText/di ... t-15535151
sl23
Posts: 187
Joined: 29.01.2013 10:04

Re: Code Folding appears to be missing parts of files.

Post by sl23 »

YES! Thank you so much! Works perfect now ;)
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2892
Joined: 25.08.2021 18:15

Re: Code Folding appears to be missing parts of files.

Post by main Alexey »

why do you use comments beginning with '-' and/or '=' ?
ie lines like:

----------------

===========

is it OK in Rainmeter files? it is not ok in INI. why not to write with ';' char?

;-------------------

;=============
sl23
Posts: 187
Joined: 29.01.2013 10:04

Re: Code Folding appears to be missing parts of files.

Post by sl23 »

Personally, I use = to define a section group:

Code: Select all

========================================
; FILE PARSE MEASURES
========================================
[mApp1FileParse]
...

[mApp1Debug]
...

[mApp1Current]
...

[mApp1Download]
...

========================================
; CATEGORY FILE VIEW
========================================
[mPath]
...

[m1Name]
...

[m2Name]
...

etc...
As the = character can be defined under symbols in the lexer, it highlights as red. This means the whole line shows up red and is distinct, ie, comments that start with ; character, which is green, could be confused with actual comments, meaning they don't stick out when browsing through a file either fast scrolling or via the MiniMap.

The dash/hyphen character is used by several others on the Rainmeter forum, but I dislike it as it doesn't show up well. But it is useful if the lexer can differentiate the code folding based on these two characters, so if I am working on code supplied by a forum member, it can be folded correctly.

I've been doing this for around 15 years and never had an issue, despite people saying I shouldn't. But they never give a reason. But, I do some odd things! Like I used to associate VST DLL files with an app called MiniHost. This way I could double-click a VST's DLL file and open it direct, just like opening a text file by double-click. But as DLL files are system files, I was warned this could cause issues if they were associated with a third party app in this way. I never once had an issue! In fact, I still do this, but with Tone2's NanoHost instead of TobyBear's MiniHost. I've done this since the days of Vista and never had any problems with it.

But then, I have learnt to keep my system in pristine condition! No start up apps, except one. Nothing is installed, everything is portable. This means only the registry has any bloat, but I often clean that, just to keep on top of it. Again, never had issues, even though Registry cleaning is something everyone says not to do.

Anyway, hope that clears up my reasons? Thanks for 'fixing' that, it has helped a lot! :D
Live for an ideal and leave no place in the mind for anything else.
Post Reply