Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/HeuristicLab.ExtLibs/HeuristicLab.AvalonEdit/5.0.1/AvalonEdit-5.0.1/Highlighting/Resources/CSS-Mode.xshd @ 16240

Last change on this file since 16240 was 11700, checked in by jkarder, 10 years ago

#2077: created branch and added first version

File size: 1.7 KB
Line 
1<SyntaxDefinition name="CSS" extensions=".css" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
2  <Color name="Comment" foreground="Gray" exampleText="/* comment */" />
3  <Color name="String" foreground="Green" exampleText="body { background: url(&quot;image.png&quot;) }" />
4  <Color name="Selector" foreground="DarkBlue" fontWeight="bold" exampleText="div p" />
5  <Color name="Class" foreground="DarkMagenta" exampleText="#para" />
6  <Color name="Property" foreground="Red" exampleText="p { color: red; }" />
7  <Color name="Value" foreground="Blue" exampleText="p { color: red; }" />
8  <Color name="CurlyBraces" foreground="Black" exampleText="{ }" />
9  <Color name="Colon" foreground="Black" exampleText=":" />
10  <RuleSet ignoreCase="true">
11    <Span color="Comment" multiline="true">
12      <Begin>/\*</Begin>
13      <End>\*/</End>
14    </Span>
15    <Span
16      color="Property"
17      multiline="true"
18      ruleSet="CSSBlock">
19      <Begin color="CurlyBraces">\{</Begin>
20      <End color="CurlyBraces">\}</End>
21    </Span>
22    <Span color="Class">
23      <Begin>\#</Begin>
24      <End>\s</End>
25    </Span>
26    <Rule color="Selector">[\d\w]</Rule>
27  </RuleSet>
28
29  <RuleSet name="CSSBlock">
30    <Span color="Comment" multiline="true">
31      <Begin>/\*</Begin>
32      <End>\*/</End>
33    </Span>
34    <Span color="Value" multiline="true">
35      <Begin color="Colon">\:</Begin>
36      <End color="CurlyBraces">\;|(?=\})</End>
37      <RuleSet>
38        <Span color="String" multiline="true">
39          <Begin>"</Begin>
40          <End>"</End>
41          <RuleSet>
42            <Span begin="\\" end="." />
43          </RuleSet>
44        </Span>
45        <Span color="String" multiline="true">
46          <Begin>'</Begin>
47          <End>'</End>
48          <RuleSet>
49            <Span begin="\\" end="." />
50          </RuleSet>
51        </Span>
52      </RuleSet>
53    </Span>
54  </RuleSet>
55</SyntaxDefinition>
56
Note: See TracBrowser for help on using the repository browser.