添加middleware
This commit is contained in:
30
middleware/zdhsys/Resources/avalonEditJson.xshd
Normal file
30
middleware/zdhsys/Resources/avalonEditJson.xshd
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<SyntaxDefinition name="Json" extensions=".js" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
|
||||
<Color name="Digits" foreground="#8700FF" exampleText="3.14" />
|
||||
<Color name="Value" foreground="#000CFF" exampleText="var text = "Hello, World!";" />
|
||||
<Color name="ParamName" foreground="#057500" exampleText="var text = "Hello, World!";" />
|
||||
<RuleSet ignoreCase="false">
|
||||
<Keywords color="Digits" >
|
||||
<Word>true</Word>
|
||||
<Word>false</Word>
|
||||
</Keywords>
|
||||
<Span color="ParamName">
|
||||
<Begin>"</Begin>
|
||||
<End>(?=:)</End>
|
||||
</Span>
|
||||
<Span color="Value" multiline="true">
|
||||
<Begin>
|
||||
(?<=:)\040"[^"]*
|
||||
</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
<Span color="Value" multiline="true">
|
||||
<Begin>
|
||||
(?<=:)"[^"]*
|
||||
</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
<Rule color="Digits">\b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?</Rule>
|
||||
</RuleSet>
|
||||
</SyntaxDefinition>
|
||||
|
||||
30
middleware/zdhsys/Resources/avalonEditJsonReadOnly.xshd
Normal file
30
middleware/zdhsys/Resources/avalonEditJsonReadOnly.xshd
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<SyntaxDefinition name="Json" extensions=".js" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
|
||||
<Color name="Digits" foreground="#AE59FF" exampleText="3.14" />
|
||||
<Color name="Value" foreground="#5961FF" exampleText="var text = "Hello, World!";" />
|
||||
<Color name="ParamName" foreground="#08A500" exampleText="var text = "Hello, World!";" />
|
||||
<RuleSet ignoreCase="false">
|
||||
<Keywords color="Digits" >
|
||||
<Word>true</Word>
|
||||
<Word>false</Word>
|
||||
</Keywords>
|
||||
<Span color="ParamName">
|
||||
<Begin>"</Begin>
|
||||
<End>(?=:)</End>
|
||||
</Span>
|
||||
<Span color="Value" multiline="true">
|
||||
<Begin>
|
||||
(?<=:)\040"[^"]*
|
||||
</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
<Span color="Value" multiline="true">
|
||||
<Begin>
|
||||
(?<=:)"[^"]*
|
||||
</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
<Rule color="Digits">\b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?</Rule>
|
||||
</RuleSet>
|
||||
</SyntaxDefinition>
|
||||
|
||||
Reference in New Issue
Block a user