Hi,
I have only been using PN for a couple of weeks by I must thank the developers as this is the best programming orientated editor I have ever used, and I have used alot!
I have been struggling with this for ages so wondered if someone could help.
I cannot seem to get the tag kinds to work correctly and it seems to be working differently to the online documentation however I am sure I must be doing something wrong. Below is my custom tagging section from the file additionalLanguages.conf
--langdef=VBScript
--langmap=VBScript:.vbs
--regex-VBScript=/^Sub ([A-za-z0-9]*\>)/\1/c,Class/i
--regex-VBScript=/^Function ([A-za-z0-9]*\>)/\1/f,Function/i
Here is the section from the file additionalSupportedSchemes.ini
[VBScript]
c = 3
f = 1
The above correctly tags all VBScript Sub's and Functions however the tag heading for the subs is unknown.
If I change it to s,Section and s = 3 they all end up under the function heading.
I must admit I find the documentation and example a little confusing as the kind-spec is set to s,Section then in the ini file s = 39 which is not no the list and appears as entity?
What I have found if that often the tag type will corrispond to the letter you chose i.e. c will appear as Class, v as Variable etc rather than the number you assign in the ini file.
Can anyone help me with this?
Also is there any way to add new tag types as this would be a great feature as you can see I am using Class to tag Sub's as there is no Subroutine or Sub tag type.
Thanks in advance