aspx syntax file

Juan C. Olivares juancri at juancri.com
Fri Oct 22 19:54:16 UTC 2004


Hi:

This is a new Syntax file for ASP.NET. This includes:

.aspx Web Forms
.ashx Web Handlers
.asmx Web Services
.ascx Web User Control
.asax Web Application Global Class

I think it's complete. It does not highlight C#/VB.NET code within a 
page... as HTML does not highlight PHP code on Web pages :)

I added these two lines to my Syntax file:

file ..\*\\.(asax|aspx|ascx|asmx|ashx)$ ASPX\sFile
include aspx.syntax


Juan C. Olivares
www.juancri.com
-------------- next part --------------
# ASP.NET syntax highlighting
#
# Author: Juan C. Olivares <juancri at juancri.com>
# http://www.juancri.com

context default
	keyword "*" lightgray
	keyword '*' lightgray
	
	spellcheck

context <!-- --> brightgreen
	spellcheck

context <! > yellow
	keyword '+' brightcyan
	keyword "+" brightcyan
	keyword \( lightgray
	keyword \) lightgray
	keyword \* lightgray
	keyword \? lightgray
	keyword \+ lightgray
	keyword \| lightgray
	keyword \, lightgray
	spellcheck

context <% %> brightgreen
	keyword Application white
	keyword Assembly white
	keyword Control white
	keyword Implements white
	keyword Import white
	keyword Inherits white
	keyword OutputCache white
	keyword Page white
	keyword Reference white
	keyword Register white
	keyword WebService white
	keyword \s+\= yellow
	keyword '*' brightcyan
	keyword "*" brightcyan
	spellcheck

context < > white
	keyword \s+\= yellow
	keyword "server" brightgreen
	keyword '*' brightcyan
	keyword "*" brightcyan
	spellcheck




More information about the mc-devel mailing list