You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							40 lines
						
					
					
						
							1.1 KiB
						
					
					
				
			
		
		
	
	
							40 lines
						
					
					
						
							1.1 KiB
						
					
					
				<?xml version="1.0"?> | 
						|
<SyntaxDefinition name="Custom Highlighting" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008"> | 
						|
	<Color name="Comment" foreground="Green" /> | 
						|
	<Color name="String" foreground="Blue" /> | 
						|
	 | 
						|
	<!-- This is the main ruleset. --> | 
						|
	<RuleSet> | 
						|
		<Span color="Comment" begin="//" /> | 
						|
		<Span color="Comment" multiline="true" begin="/\*" end="\*/" /> | 
						|
		 | 
						|
		<Span color="String"> | 
						|
			<Begin>"</Begin> | 
						|
			<End>"</End> | 
						|
			<RuleSet> | 
						|
				<!-- nested span for escape sequences --> | 
						|
				<Span begin="\\" end="." /> | 
						|
			</RuleSet> | 
						|
		</Span> | 
						|
		 | 
						|
		<Keywords fontWeight="bold" foreground="Blue"> | 
						|
			<Word>if</Word> | 
						|
			<Word>else</Word> | 
						|
			<!-- ... --> | 
						|
		</Keywords> | 
						|
		 | 
						|
		<Keywords fontWeight="bold" fontStyle="italic" foreground="Red"> | 
						|
			<Word>AvalonEdit</Word> | 
						|
		</Keywords> | 
						|
		 | 
						|
		<!-- Digits --> | 
						|
		<Rule foreground="DarkBlue"> | 
						|
            \b0[xX][0-9a-fA-F]+  # hex number | 
						|
        |    \b | 
						|
            (    \d+(\.[0-9]+)?   #number with optional floating point | 
						|
            |    \.[0-9]+         #or just starting with floating point | 
						|
            ) | 
						|
            ([eE][+-]?[0-9]+)? # optional exponent | 
						|
        </Rule> | 
						|
	</RuleSet> | 
						|
</SyntaxDefinition> |