sholsinger.com

Categories Photography Résumé About Me

Updated Classic ASP TextMate Bundle

16 Aug 2011

I downloaded this TextMate bundle a while ago for ASP -- so I could have code coloring. However I've found that I really need the symbols to be correctly identified. So I updated the bundle to include public & private methods of classes in the list of symbols. I also added a permanent redirect snippet. (I have to write these frequently since mod_rewrite isn't available to me</em>)

Download my version of the bundle</a>.

Note</strong>: The original bundle</a> is available on the MacroMates bundles for the 1.0.2 release page. It was created by Rich Barton and based on the work of Justin French, Sune Foldager and Allan Odgaard on the PHP scripting dictionary.</em></small>

Filed under

Comments
  • evpozdniakov 2012-01-17 08:32:09 -0500

    thank you!

  • Kevin S 2012-04-19 18:59:25 -0400

    I found a bug with the way you're detecting comments in this bundle Specifically a line like: ' foo = "" Is not flagged as a comment, since it contains the character >. Here's an updated entry for the comments which fixes this issue: { name = 'comment.line.apostrophe.asp'; match = "(')(.(?!(%>|\n|\r\n|$)))*."; captures = { 1 = { name = 'punctuation.definition.comment.asp'; }; }; }, It was bugging me a lot that the syntax highlighting was broken, while trying to comment out lines that contained HTML, or expressions comparing numbers. Thanks for the bundle!

  • Kevin S 2012-04-19 19:00:26 -0400

    Whoops, It seems my HTML was stripped out. I meant a line like: ‘ foo = “

  • Kevin S 2012-04-20 15:06:32 -0400

    Heh. Found a small bug in my revised code, where a single quote on a line with no characters following wasn't marked as a comment Revised version:

    {
    	name = 'comment.line.apostrophe.asp';
    	match = "(')(.(?!(%>|\n|\r\n|$)))*.?";
    	captures = { 1 = { name = 'punctuation.definition.comment.asp'; }; };
    },</code></pre>

  • stev0 2012-07-03 05:53:23 -0400

    Excellent, many thanks.

  • Thiago C 2012-08-14 09:12:23 -0400

    Thanks!!

comments powered by Disqus