mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-04 11:49:03 +00:00
Support dark mode Log
https://github.com/Dirkster99/AvalonEditHighlightingThemes/blob/master/source/HL/Resources/Themes/VS2019_Dark.xshtd
This commit is contained in:
@@ -0,0 +1,91 @@
|
||||
<!--
|
||||
There is no such thing like a log file format but there are usually keywords,
|
||||
such as, ERROR, FATAL, DEBUG, or timestamps in squared brackets that could be
|
||||
viewed with a better experience than no highlighting at all.
|
||||
|
||||
This highlighting pattern is intended to improve the viewing experience for text
|
||||
based (non-xml based) log files.
|
||||
-->
|
||||
<SyntaxDefinition name="LOG" extensions=".log"
|
||||
xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
|
||||
|
||||
<Color name="Digits" foreground="#FFb5cea8" fontStyle="normal" fontWeight="normal" />
|
||||
<Color name="Comment" foreground="#FF57A64A"/>
|
||||
<Color name="Punctuation" foreground="White"/>
|
||||
<Color name="String" foreground="#FFD69D85"/>
|
||||
<Color name="String2" foreground="#FFD69D85"/>
|
||||
|
||||
<Color name="Section" foreground="#FFdcdcaa"/>
|
||||
|
||||
<Color name="AmericanDate" foreground="#FFd8a0df"/>
|
||||
<Color name="TimeStamp" foreground="#FFd8a0df"/>
|
||||
|
||||
<Color name="ImportantKeywords" foreground="#FFd8a0df" fontWeight="bold" />
|
||||
<Color name="InfoKeywords" foreground="#FF559CD6" fontWeight="bold" />
|
||||
|
||||
<RuleSet ignoreCase="true">
|
||||
|
||||
<Keywords color="InfoKeywords">
|
||||
<Word>Info</Word>
|
||||
<Word>Information</Word>
|
||||
<Word>Trace</Word>
|
||||
<Word>Debug</Word>
|
||||
</Keywords>
|
||||
|
||||
<Keywords color="ImportantKeywords">
|
||||
<Word>Error</Word>
|
||||
<Word>Warn</Word>
|
||||
<Word>Warning</Word>
|
||||
<Word>Exception</Word>
|
||||
<Word>Fatal</Word>
|
||||
</Keywords>
|
||||
|
||||
<Span color="String" multiline="false" >
|
||||
<Begin>'</Begin>
|
||||
<End>'</End>
|
||||
</Span>
|
||||
|
||||
<Span color="String2" multiline="false" >
|
||||
<Begin>"</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
|
||||
<!-- span for escape sequences -->
|
||||
<Span color="Comment" multiline="false">
|
||||
<Begin>;</Begin>
|
||||
</Span>
|
||||
<Span color="Comment" multiline="false">
|
||||
<Begin>\#</Begin>
|
||||
</Span>
|
||||
|
||||
<Span color="Section" multiline="false">
|
||||
<Begin>\[</Begin>
|
||||
<End>\]</End>
|
||||
</Span>
|
||||
|
||||
<Rule color="Punctuation">
|
||||
[?,.;()\[\]{}+\-/%*<>^+~!|&]+
|
||||
</Rule>
|
||||
|
||||
<Rule color="Digits">
|
||||
[?,.;()\[\]{}+\-/%*<>^+~!|&]+[0-9]+[ ?,.;()\[\]{}+\-/%*<>^+~!|&]+\n
|
||||
</Rule>
|
||||
|
||||
<!-- American Date: 2013-01-28 -->
|
||||
<Rule color="AmericanDate">
|
||||
[0-9][0-9][0-9][0-9]\-[0-9][0-9]\-[0-9][0-9]
|
||||
</Rule>
|
||||
|
||||
<!-- Time Stamp with milli seconds: 13:05:35.425 -->
|
||||
<Rule color="TimeStamp">
|
||||
[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]\.[0-9][0-9][0-9]
|
||||
</Rule>
|
||||
|
||||
<!-- Time Stamp WITHOUT milli seconds: 13:05:35 -->
|
||||
<Rule color="TimeStamp">
|
||||
[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]
|
||||
</Rule>
|
||||
|
||||
</RuleSet>
|
||||
|
||||
</SyntaxDefinition>
|
Reference in New Issue
Block a user