Page 1 of 1

Using the Code Explorer Panel

Posted: 15 Jan 2019 22:15
by serk237
Hello everyone. I use RJ Texted to edit an obscure language. I am trying to understand how to get custom items to appear in the Code area under Structures, Methods, etc.
I need to define custom items but cannot seem to get it done. If I use NOTE this appears in my TODO list perfectly, but I cannot use NOTE everywhere.

I am sure I am missing something simple any help or direction would be appreciated.

Thanks in advance!

Re: Using the Code Explorer Panel

Posted: 15 Jan 2019 23:56
by serk237
Maybe this is a better wording of question:

If I open an HTML file and I go to the code Explorer Panel. then look under the Tags tab. I will see <>script src="followed by what is on that line"

How can I get my own Tag to appear in that window like the script tag?

For example: I would like all lines that have :SECTION= to appear like script src=.

Sorry for any confusion.

Re: Using the Code Explorer Panel

Posted: 17 Jan 2019 11:38
by pjj
Sadly, I have no idea how to do it; I suppose it is hardcoded and e.g. "Show Methods" simply scans the source looking for "function" keyword (but that's my guess). Btw. TODO and NOTE keywords are indeed hardcoded.

Re: Using the Code Explorer Panel

Posted: 20 Jan 2019 14:52
by Rickard Johansson
You could try to create your own HTML syntax file and add your own tag to the "Code folding/Explorer" section.

If you examine the HTML syntax file (HTML.syx) it contains the following lines in the fold section:


These lines will add the script tag to the explorer window.

If you find the syntax editor a bit to complicated to use, you can edit the syntax file manually. Just remember to copy all HTML syntax files to the "Syntax\User defined" folder first and edit them there.
The downside of maintaining your own version is that you may be missing out on new additions that I make to the HTML syntax files.

Re: Using the Code Explorer Panel

Posted: 28 Jan 2019 18:52
by serk237
Thanks pjj and Richard!

I will try your suggestions.