Show Code [Source]

  • Reads text or code file and colors reserved, class words, comments and text
  • Changes greater than and smaller than to html entities
  • Uses Visual Studio's default colors
    		reserved - blue
    		class - cyan
    		comment - green
    		text - red
    	
  • Uses regex to find correct match from each line
    		text - \"[^\"]*\"
    		comment - //.*
    		reserved & class - [ |\t|\\.|\\(|,|>|<|!]{0}[ |\t|$||\r|\\.|\\[|\\>|\\<|;|\\(]
    		htmlbegin - <[a-zA-Z0-9]*.*?>
    		htmlend - 
    	
  • User can insert any url address with code file
    		Default.aspx?url=[url here]
    	

    18.12.2010
    tomi.tuhkanen@iki.fi