aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-08-04 11:45:59 -0700
committerJohn MacFarlane <[email protected]>2023-08-04 13:31:06 -0700
commit5e1b9591e1999e25b0ef9dc3f642f5cdd3beed8d (patch)
treedfc8325cc342460dca0ef8af08372002d4fa58ad /test/command
parent4670722dfaa91314686d21b4c57d35530aa8646b (diff)
Started implementing syntax highlighting for ODT.
Currently only colors are supported, not other text styles. This change includes a new default opendocumnet template. See #6710.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/6792.md97
-rw-r--r--test/command/8256.md97
2 files changed, 194 insertions, 0 deletions
diff --git a/test/command/6792.md b/test/command/6792.md
index d0d284f5d..e7394c69e 100644
--- a/test/command/6792.md
+++ b/test/command/6792.md
@@ -21,6 +21,103 @@
<office:font-face-decls>
<style:font-face style:name="Courier New" style:font-family-generic="modern" style:font-pitch="fixed" svg:font-family="'Courier New'" />
</office:font-face-decls>
+ <office:styles>
+ <w:style style:name="SourceCode" style:family="paragraph" style:class="text">
+ </w:style>
+ <style:style style:name="KeywordTok" style:family="text">
+ <style:text-properties fo:color="#007020" />
+ </style:style>
+ <style:style style:name="DataTypeTok" style:family="text">
+ <style:text-properties fo:color="#902000" />
+ </style:style>
+ <style:style style:name="DecValTok" style:family="text">
+ <style:text-properties fo:color="#40a070" />
+ </style:style>
+ <style:style style:name="BaseNTok" style:family="text">
+ <style:text-properties fo:color="#40a070" />
+ </style:style>
+ <style:style style:name="FloatTok" style:family="text">
+ <style:text-properties fo:color="#40a070" />
+ </style:style>
+ <style:style style:name="ConstantTok" style:family="text">
+ <style:text-properties fo:color="#880000" />
+ </style:style>
+ <style:style style:name="CharTok" style:family="text">
+ <style:text-properties fo:color="#4070a0" />
+ </style:style>
+ <style:style style:name="SpecialCharTok" style:family="text">
+ <style:text-properties fo:color="#4070a0" />
+ </style:style>
+ <style:style style:name="StringTok" style:family="text">
+ <style:text-properties fo:color="#4070a0" />
+ </style:style>
+ <style:style style:name="VerbatimStringTok" style:family="text">
+ <style:text-properties fo:color="#4070a0" />
+ </style:style>
+ <style:style style:name="SpecialStringTok" style:family="text">
+ <style:text-properties fo:color="#bb6688" />
+ </style:style>
+ <style:style style:name="ImportTok" style:family="text">
+ <style:text-properties fo:color="#008000" />
+ </style:style>
+ <style:style style:name="CommentTok" style:family="text">
+ <style:text-properties fo:color="#60a0b0" />
+ </style:style>
+ <style:style style:name="DocumentationTok" style:family="text">
+ <style:text-properties fo:color="#ba2121" />
+ </style:style>
+ <style:style style:name="AnnotationTok" style:family="text">
+ <style:text-properties fo:color="#60a0b0" />
+ </style:style>
+ <style:style style:name="CommentVarTok" style:family="text">
+ <style:text-properties fo:color="#60a0b0" />
+ </style:style>
+ <style:style style:name="OtherTok" style:family="text">
+ <style:text-properties fo:color="#007020" />
+ </style:style>
+ <style:style style:name="FunctionTok" style:family="text">
+ <style:text-properties fo:color="#06287e" />
+ </style:style>
+ <style:style style:name="VariableTok" style:family="text">
+ <style:text-properties fo:color="#19177c" />
+ </style:style>
+ <style:style style:name="ControlFlowTok" style:family="text">
+ <style:text-properties fo:color="#007020" />
+ </style:style>
+ <style:style style:name="OperatorTok" style:family="text">
+ <style:text-properties fo:color="#666666" />
+ </style:style>
+ <style:style style:name="BuiltInTok" style:family="text">
+ <style:text-properties fo:color="#008000" />
+ </style:style>
+ <style:style style:name="ExtensionTok" style:family="text">
+ <style:text-properties />
+ </style:style>
+ <style:style style:name="PreprocessorTok" style:family="text">
+ <style:text-properties fo:color="#bc7a00" />
+ </style:style>
+ <style:style style:name="AttributeTok" style:family="text">
+ <style:text-properties fo:color="#7d9029" />
+ </style:style>
+ <style:style style:name="RegionMarkerTok" style:family="text">
+ <style:text-properties />
+ </style:style>
+ <style:style style:name="InformationTok" style:family="text">
+ <style:text-properties fo:color="#60a0b0" />
+ </style:style>
+ <style:style style:name="WarningTok" style:family="text">
+ <style:text-properties fo:color="#60a0b0" />
+ </style:style>
+ <style:style style:name="AlertTok" style:family="text">
+ <style:text-properties fo:color="#ff0000" />
+ </style:style>
+ <style:style style:name="ErrorTok" style:family="text">
+ <style:text-properties fo:color="#ff0000" />
+ </style:style>
+ <style:style style:name="NormalTok" style:family="text">
+ <style:text-properties />
+ </style:style>
+ </office:styles>
<office:automatic-styles>
<style:style style:name="fr2" style:family="graphic" style:parent-style-name="Formula"><style:graphic-properties style:vertical-pos="middle" style:vertical-rel="text" style:horizontal-pos="center" style:horizontal-rel="paragraph-content" style:wrap="none" /></style:style>
<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Formula"><style:graphic-properties style:vertical-pos="middle" style:vertical-rel="text" /></style:style>
diff --git a/test/command/8256.md b/test/command/8256.md
index 76398f607..4712acedd 100644
--- a/test/command/8256.md
+++ b/test/command/8256.md
@@ -15,6 +15,103 @@ Testing.
<office:font-face-decls>
<style:font-face style:name="Courier New" style:font-family-generic="modern" style:font-pitch="fixed" svg:font-family="'Courier New'" />
</office:font-face-decls>
+ <office:styles>
+ <w:style style:name="SourceCode" style:family="paragraph" style:class="text">
+ </w:style>
+ <style:style style:name="KeywordTok" style:family="text">
+ <style:text-properties fo:color="#007020" />
+ </style:style>
+ <style:style style:name="DataTypeTok" style:family="text">
+ <style:text-properties fo:color="#902000" />
+ </style:style>
+ <style:style style:name="DecValTok" style:family="text">
+ <style:text-properties fo:color="#40a070" />
+ </style:style>
+ <style:style style:name="BaseNTok" style:family="text">
+ <style:text-properties fo:color="#40a070" />
+ </style:style>
+ <style:style style:name="FloatTok" style:family="text">
+ <style:text-properties fo:color="#40a070" />
+ </style:style>
+ <style:style style:name="ConstantTok" style:family="text">
+ <style:text-properties fo:color="#880000" />
+ </style:style>
+ <style:style style:name="CharTok" style:family="text">
+ <style:text-properties fo:color="#4070a0" />
+ </style:style>
+ <style:style style:name="SpecialCharTok" style:family="text">
+ <style:text-properties fo:color="#4070a0" />
+ </style:style>
+ <style:style style:name="StringTok" style:family="text">
+ <style:text-properties fo:color="#4070a0" />
+ </style:style>
+ <style:style style:name="VerbatimStringTok" style:family="text">
+ <style:text-properties fo:color="#4070a0" />
+ </style:style>
+ <style:style style:name="SpecialStringTok" style:family="text">
+ <style:text-properties fo:color="#bb6688" />
+ </style:style>
+ <style:style style:name="ImportTok" style:family="text">
+ <style:text-properties fo:color="#008000" />
+ </style:style>
+ <style:style style:name="CommentTok" style:family="text">
+ <style:text-properties fo:color="#60a0b0" />
+ </style:style>
+ <style:style style:name="DocumentationTok" style:family="text">
+ <style:text-properties fo:color="#ba2121" />
+ </style:style>
+ <style:style style:name="AnnotationTok" style:family="text">
+ <style:text-properties fo:color="#60a0b0" />
+ </style:style>
+ <style:style style:name="CommentVarTok" style:family="text">
+ <style:text-properties fo:color="#60a0b0" />
+ </style:style>
+ <style:style style:name="OtherTok" style:family="text">
+ <style:text-properties fo:color="#007020" />
+ </style:style>
+ <style:style style:name="FunctionTok" style:family="text">
+ <style:text-properties fo:color="#06287e" />
+ </style:style>
+ <style:style style:name="VariableTok" style:family="text">
+ <style:text-properties fo:color="#19177c" />
+ </style:style>
+ <style:style style:name="ControlFlowTok" style:family="text">
+ <style:text-properties fo:color="#007020" />
+ </style:style>
+ <style:style style:name="OperatorTok" style:family="text">
+ <style:text-properties fo:color="#666666" />
+ </style:style>
+ <style:style style:name="BuiltInTok" style:family="text">
+ <style:text-properties fo:color="#008000" />
+ </style:style>
+ <style:style style:name="ExtensionTok" style:family="text">
+ <style:text-properties />
+ </style:style>
+ <style:style style:name="PreprocessorTok" style:family="text">
+ <style:text-properties fo:color="#bc7a00" />
+ </style:style>
+ <style:style style:name="AttributeTok" style:family="text">
+ <style:text-properties fo:color="#7d9029" />
+ </style:style>
+ <style:style style:name="RegionMarkerTok" style:family="text">
+ <style:text-properties />
+ </style:style>
+ <style:style style:name="InformationTok" style:family="text">
+ <style:text-properties fo:color="#60a0b0" />
+ </style:style>
+ <style:style style:name="WarningTok" style:family="text">
+ <style:text-properties fo:color="#60a0b0" />
+ </style:style>
+ <style:style style:name="AlertTok" style:family="text">
+ <style:text-properties fo:color="#ff0000" />
+ </style:style>
+ <style:style style:name="ErrorTok" style:family="text">
+ <style:text-properties fo:color="#ff0000" />
+ </style:style>
+ <style:style style:name="NormalTok" style:family="text">
+ <style:text-properties />
+ </style:style>
+ </office:styles>
<office:automatic-styles>
<style:style style:name="T1" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
<style:style style:name="fr2" style:family="graphic" style:parent-style-name="Formula"><style:graphic-properties style:vertical-pos="middle" style:vertical-rel="text" style:horizontal-pos="center" style:horizontal-rel="paragraph-content" style:wrap="none" /></style:style>