View Single Post
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 01-14-2013 , 06:54   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #29

Quote:
Originally Posted by mcpan313 View Post
generator up to v1.0.0.1, fix some bug in include file parser.

https://forums.alliedmods.net/showpo...6&postcount=19
Nice job! Is there a reason you used underscores instead of the actual spaces or colons?

Example:
Code:
<snippet>
    <description>console</description>
    <content><![CDATA[CheckAccess(${1:AdminId_id}, ${2:const_String_command}, ${3:flags})]]></content>
    <tabTrigger>checkAccess</tabTrigger>
    <scope>source.sp, source.inc</scope>
</snippet>
Could be...
Code:
<snippet>
    <description>console</description>
    <content><![CDATA[CheckAccess(${1:AdminId:id}, ${2:const String:command[]}, ${3:flags})]]></content>
    <tabTrigger>checkAccess</tabTrigger>
    <scope>source.sp, source.inc</scope>
</snippet>
And then it will have the proper syntax highlighting with it.
__________________
GoD-Tony is offline