Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2916_IndexedDataTableSerialization/HeuristicLab.ExtLibs/HeuristicLab.AvalonEdit/5.0.1/AvalonEdit-5.0.1/Highlighting/Resources/MarkDown-Mode.xshd @ 15917

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

#2077: created branch and added first version

File size: 1.7 KB
Line 
1<?xml version="1.0"?>
2<SyntaxDefinition name="MarkDown" extensions=".md" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
3  <Color name="Heading" foreground="Maroon" exampleText="# Title #" />
4  <Color name="Emphasis" fontStyle="italic" exampleText="*this* is important!" />
5  <Color name="StrongEmphasis" fontWeight="bold" exampleText="**this** is more important!" />
6  <Color name="Code" exampleText="this is `int.GetHashCode()`" />
7  <Color name="BlockQuote" foreground="DarkBlue" exampleText="&gt; This is a\r\n&gt; quote." />
8  <Color name="Link" foreground="Blue" exampleText="[text](http://example.com)" />
9  <Color name="Image" foreground="Green" exampleText="[text][http://example.com/test.png]" />
10  <Color name="LineBreak" background="LightGray" exampleText="end of line      \r\n2nd line   " />
11 
12  <RuleSet ignoreCase="true">
13    <Rule color="Heading">
14      ^\#.*
15    </Rule>
16    <Rule color="StrongEmphasis">
17      \*\*.*\*\*
18    </Rule>
19    <Rule color="StrongEmphasis">
20      __.*__
21    </Rule>
22    <Rule color="Emphasis">
23      \*(?![ ]).*\*
24    </Rule>
25    <Rule color="Emphasis">
26      _.*_
27    </Rule>
28    <Rule color="Code">
29      `.*`
30    </Rule>
31    <Span color="Code" ruleSet="C#/" multiline="true">
32      <Begin>^\t</Begin>
33      <End>^(?!\t)</End>
34    </Span>
35    <Span color="Code" ruleSet="C#/" multiline="true">
36      <Begin>^[ ]{4}</Begin>
37      <End>^(?![ ]{4})</End>
38    </Span>
39    <Span color="BlockQuote" multiline="true">
40      <Begin>^&gt;</Begin>
41      <End>^(?!&gt;)</End>
42    </Span>
43    <Rule color="Image">
44      \!\[.*\]\[.*\]
45    </Rule>
46    <Rule color="Link">
47      \[.*\]\(.*\)
48    </Rule>
49    <Rule color="Link">
50      \[.*\]\[.*\]
51    </Rule>
52    <Rule color="LineBreak">
53      [ ]{2}$
54    </Rule>
55  </RuleSet>
56</SyntaxDefinition>
Note: See TracBrowser for help on using the repository browser.