mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-15 04:39:07 +00:00
Add syntax highlighting for SubRip Subtitle (.srt) files
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<SyntaxDefinition name="SubRip Subtitle" extensions=".srt">
|
||||
|
||||
<Environment>
|
||||
<Default color="#D4D4D4" bgcolor="#1E1E1E"/>
|
||||
<Selection color="#1E1E1E" bgcolor="#264F78"/>
|
||||
<LineNumbers color="#858585" bgcolor="#1E1E1E"/>
|
||||
<CaretMarker color="#AEAFAD"/>
|
||||
</Environment>
|
||||
|
||||
<Digits name="Digits" color="#B5CEA8"/>
|
||||
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase="false">
|
||||
<Delimiters>:,-> <></Delimiters>
|
||||
|
||||
<!-- Arrow symbol -->
|
||||
<KeyWords name="Arrow" color="#D7BA7D" bold="true">
|
||||
<Key word="-->" />
|
||||
</KeyWords>
|
||||
|
||||
<!-- HTML formatting tags -->
|
||||
<KeyWords name="HtmlTag" color="#4EC9B0" bold="false">
|
||||
<Key word="<i>" />
|
||||
<Key word="</i>" />
|
||||
<Key word="<b>" />
|
||||
<Key word="</b>" />
|
||||
<Key word="<u>" />
|
||||
<Key word="</u>" />
|
||||
<Key word="<font" />
|
||||
<Key word="</font>" />
|
||||
</KeyWords>
|
||||
|
||||
</RuleSet>
|
||||
</RuleSets>
|
||||
</SyntaxDefinition>
|
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<SyntaxDefinition name="SubRip Subtitle" extensions=".srt">
|
||||
|
||||
<Environment>
|
||||
<Default color="#000000" bgcolor="#FFFFFF"/>
|
||||
<Selection color="#FFFFFF" bgcolor="#0078D4"/>
|
||||
<LineNumbers color="#2B91AF" bgcolor="#FFFFFF"/>
|
||||
<CaretMarker color="#000000"/>
|
||||
</Environment>
|
||||
|
||||
<Digits name="Digits" color="#098658"/>
|
||||
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase="false">
|
||||
<Delimiters>:,-> <></Delimiters>
|
||||
|
||||
<!-- Arrow symbol -->
|
||||
<KeyWords name="Arrow" color="#AF00DB" bold="true">
|
||||
<Key word="-->" />
|
||||
</KeyWords>
|
||||
|
||||
<!-- HTML formatting tags -->
|
||||
<KeyWords name="HtmlTag" color="#0000FF" bold="false">
|
||||
<Key word="<i>" />
|
||||
<Key word="</i>" />
|
||||
<Key word="<b>" />
|
||||
<Key word="</b>" />
|
||||
<Key word="<u>" />
|
||||
<Key word="</u>" />
|
||||
<Key word="<font" />
|
||||
<Key word="</font>" />
|
||||
</KeyWords>
|
||||
|
||||
</RuleSet>
|
||||
</RuleSets>
|
||||
</SyntaxDefinition>
|
Reference in New Issue
Block a user