<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>pnotepad.org forums &#187; Topic: Tagging Custom Languages Help With kind-spec</title>
		<link>http://pnotepad.org/forums/topic/493</link>
		<description>Programmer&#039;s Notepad Forums</description>
		<language>en-US</language>
		<pubDate>Thu, 09 Feb 2012 06:37:54 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://pnotepad.org/forums/search.php</link>
		</textInput>
		<atom:link href="http://pnotepad.org/forums/rss/topic/493" rel="self" type="application/rss+xml" />

		<item>
                        <title>Tagging Custom Languages Help With kind-spec (simon)</title>
			<link>http://pnotepad.org/forums/topic/493#post-7558</link>
			<pubDate>Mon, 10 Jan 2011 18:22:20 +0000</pubDate>
			<dc:creator>simon</dc:creator>
			<guid isPermaLink="false">7558@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Thanks for the update, glad you got it working.&#60;/p&#62;
&#60;p&#62;As for sorting the tags, it depends on how much C++ you know. If you're familiar with it then probably not too bad, if not then it could be more work! Feel free to file a feature request for the tag tree to be sorted in some way.
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Tagging Custom Languages Help With kind-spec (swiftnano)</title>
			<link>http://pnotepad.org/forums/topic/493#post-7541</link>
			<pubDate>Fri, 07 Jan 2011 17:26:23 +0000</pubDate>
			<dc:creator>swiftnano</dc:creator>
			<guid isPermaLink="false">7541@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Just downloaded the latest release (Thanks again for an amazing application).&#60;/p&#62;
&#60;p&#62;After not solving this a year ago the new version prompted me to have another crack at it and I have it sorted! Whooo!&#60;/p&#62;
&#60;p&#62;I decided to learn more about what ctags was doing and the answer became clearer after this. To get my VBScript files tagged properly I did the following&#60;/p&#62;
&#60;p&#62;Added to additionalLanguages.conf&#60;br /&#62;
--langmap=Asp:+.vbs&#60;/p&#62;
&#60;p&#62;This tells ctags to use the Asp regular expressions for *.vbs (this was simpler than defining a custom language and writing my own regular expressions as I was doing previously)&#60;/p&#62;
&#60;p&#62;Added to additionalSupportedSchemes.ini&#60;br /&#62;
[vbscript]&#60;br /&#62;
s = 1&#60;br /&#62;
f = 1&#60;br /&#62;
d = 4&#60;br /&#62;
v = 13&#60;/p&#62;
&#60;p&#62;(If you want subs and functions defined separately change s = 1 to s = 10&#60;/p&#62;
&#60;p&#62;My main mistake here previously was the case of &#34;vbscript&#34; (Silly mistake coming from two much time with case insensitive languages)&#60;/p&#62;
&#60;p&#62;I may still look at the code to see if I can tweak the ordering of the tags (I'd like them to be alphabetic) and add some more tag descriptions. Do you think this is an easy intro to the code?&#60;/p&#62;
&#60;p&#62;Hope this helps someone.
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Tagging Custom Languages Help With kind-spec (Nux)</title>
			<link>http://pnotepad.org/forums/topic/493#post-2170</link>
			<pubDate>Fri, 19 Jun 2009 11:00:17 +0000</pubDate>
			<dc:creator>Nux</dc:creator>
			<guid isPermaLink="false">2170@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Scratch that - I got it working :-). As seems one need to have exact same name of the language in the additionalLanguages.conf, additionalSupportedSchemes.ini, extmap.dat and *.scheme. You also need to use the same extension as in extmap.dat
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Tagging Custom Languages Help With kind-spec (Nux)</title>
			<link>http://pnotepad.org/forums/topic/493#post-2169</link>
			<pubDate>Fri, 19 Jun 2009 10:48:08 +0000</pubDate>
			<dc:creator>Nux</dc:creator>
			<guid isPermaLink="false">2169@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;BTW. Is there some easy way to use the same tagging in a new (custom) format just as in an existing format (I want to use JavaScript tagger for ActionScript).
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Tagging Custom Languages Help With kind-spec (Nux)</title>
			<link>http://pnotepad.org/forums/topic/493#post-2168</link>
			<pubDate>Fri, 19 Jun 2009 10:44:49 +0000</pubDate>
			<dc:creator>Nux</dc:creator>
			<guid isPermaLink="false">2168@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;As seems defining new extensions and schemes doesn't work.&#60;/p&#62;
&#60;p&#62;This works:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
--langdef=properties&#60;br /&#62;
--langmap=properties:.ini&#60;br /&#62;
--regex-properties=/[ \t]*function (.+)[ \t]*\(/\1/s,Section/&#60;br /&#62;
--regex-properties=/[ \t]*test (.+)[ \t]*\(/\1/s,Section/&#60;br /&#62;
&#60;/code&#62;&#60;br /&#62;
This doesn't&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
--langdef=properties&#60;br /&#62;
--langmap=properties:.as&#60;br /&#62;
--regex-properties=/[ \t]*function (.+)[ \t]*\(/\1/s,Section/&#60;br /&#62;
&#60;/code&#62;&#60;br /&#62;
And this doesn't (note that I have defined the scheme as f = 1):&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
--langdef=properties&#60;br /&#62;
--langmap=properties:.ini&#60;br /&#62;
--regex-properties=/[ \t]*function (.+)[ \t]*\(/\1/f,Function/&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I've also found this line in a changelog of 2.0.8.718:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;28) ctags tag provider is now an extension, custom tagger&#60;br /&#62;
   plugin format removed&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Does that mean that it won't work?
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Tagging Custom Languages Help With kind-spec (swiftnano)</title>
			<link>http://pnotepad.org/forums/topic/493#post-1939</link>
			<pubDate>Fri, 27 Mar 2009 15:14:34 +0000</pubDate>
			<dc:creator>swiftnano</dc:creator>
			<guid isPermaLink="false">1939@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Thanks for looking into this.&#60;/p&#62;
&#60;p&#62;I look forward to your comments.
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Tagging Custom Languages Help With kind-spec (simon)</title>
			<link>http://pnotepad.org/forums/topic/493#post-1793</link>
			<pubDate>Tue, 27 Jan 2009 11:28:20 +0000</pubDate>
			<dc:creator>simon</dc:creator>
			<guid isPermaLink="false">1793@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Hi, I haven't forgotten about this, I'll try and take a look this evening.
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Tagging Custom Languages Help With kind-spec (swiftnano)</title>
			<link>http://pnotepad.org/forums/topic/493#post-1789</link>
			<pubDate>Wed, 21 Jan 2009 14:06:50 +0000</pubDate>
			<dc:creator>swiftnano</dc:creator>
			<guid isPermaLink="false">1789@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;bump ;-)&#60;/p&#62;
&#60;p&#62;Can anyone help me with this or even confirm the behaviour so that I know it is not just something I am doing wrong?
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Tagging Custom Languages Help With kind-spec (swiftnano)</title>
			<link>http://pnotepad.org/forums/topic/493#post-1741</link>
			<pubDate>Wed, 03 Dec 2008 11:46:56 +0000</pubDate>
			<dc:creator>swiftnano</dc:creator>
			<guid isPermaLink="false">1741@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;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!&#60;/p&#62;
&#60;p&#62;I have been struggling with this for ages so wondered if someone could help.&#60;/p&#62;
&#60;p&#62;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&#60;/p&#62;
&#60;p&#62;--langdef=VBScript&#60;br /&#62;
--langmap=VBScript:.vbs&#60;br /&#62;
--regex-VBScript=/^Sub ([A-za-z0-9]*\&#38;gt;)/\1/c,Class/i&#60;br /&#62;
--regex-VBScript=/^Function ([A-za-z0-9]*\&#38;gt;)/\1/f,Function/i&#60;/p&#62;
&#60;p&#62;Here is the section from the file additionalSupportedSchemes.ini&#60;br /&#62;
[VBScript]&#60;br /&#62;
c = 3&#60;br /&#62;
f = 1&#60;/p&#62;
&#60;p&#62;The above correctly tags all VBScript Sub's and Functions however the tag heading for the subs is unknown.&#60;/p&#62;
&#60;p&#62;If I change it to s,Section and s = 3 they all end up under the function heading.&#60;/p&#62;
&#60;p&#62;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?&#60;/p&#62;
&#60;p&#62;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.&#60;/p&#62;
&#60;p&#62;Can anyone help me with this?&#60;/p&#62;
&#60;p&#62;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.&#60;/p&#62;
&#60;p&#62;Thanks in advance
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>

