Page 1 of 1

Simple IDE addition:Specialized Folded Color/Bolded Comments

Posted: Mon Feb 26, 2018 3:44 am
by deathmx
Hello, I was wondering if it is possible to add keywords via comment to help organize large amounts of code.
Specialized comments.

If i used ;[ BoldColorThis to make a comment look a little different then a comment.

Basically i would like to be able to Fold the code like using ;{ but with a different color and bold to make it look less like a regular comment. So that it seems more important. When using ";{ Group Main Structures" for example it looks Really like there is just a plain comment there. This way if the code folded in a ;{ comment would really feel more important.


Thank you :D

Re: Simple IDE addition:Specialized Folded Color/Bolded Comm

Posted: Thu Mar 01, 2018 5:25 pm
by Derren
Hi,

I experimented with the issues-fuctions to achieve this.
sadly I wasn't able to get ;[ to get work, but this worked for me. it's not exactly what you wanted, but I think as a workaround it's okay

Code: Select all

;{x important comment
Go to settings and create a new "issue" with the following Regular Expression: \{x\b.* and give it any color you want. Select "change line background", pick a nice contrasting color (you can't make it bold).

You need to add ;{x as a folding start keywords as well.

Re: Simple IDE addition:Specialized Folded Color/Bolded Comm

Posted: Fri Mar 02, 2018 1:04 am
by deathmx
Hi Darren,

Thanks for the tip :) ! I have tried to add ;{x to the keywords and it seems comments are not effected by keywords. I ended up making a Blank Macro/keyword Named Group and EndGroup. It would be nice if i could put a bold word after it describing the group. Using the Issue List seems like a good idea. I may add this to the comments after the group keyword to highlight the line.

Re: Simple IDE addition:Specialized Folded Color/Bolded Comm

Posted: Fri Mar 02, 2018 10:58 am
by Derren
why not just "Group ;important group"

and add Group to the keyword list to make it bold.

The advantage of the issue is that you can add it to to procedure list, like a ";-" comment

Re: Simple IDE addition:Specialized Folded Color/Bolded Comm

Posted: Fri Mar 02, 2018 12:12 pm
by deathmx
That's exactly what i did :)