Skip to content

Instantly share code, notes, and snippets.

@lwrage
Created January 27, 2017 19:11
Show Gist options
  • Save lwrage/2576c79e1fed879761b5fe1c5693b6d5 to your computer and use it in GitHub Desktop.
Save lwrage/2576c79e1fed879761b5fe1c5693b6d5 to your computer and use it in GitHub Desktop.
highlighting-kate vs. skylighting
<head><title>highlighttest.aadl</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="generator" content="highlight-kate"><style type="text/css">div.sourceCode { overflow-x: auto; }
table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
margin: 0; padding: 0; vertical-align: baseline; border: none; }
table.sourceCode { width: 100%; line-height: 100%; }
td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
td.sourceCode { padding-left: 5px; }
code > span.kw { color: #007020; font-weight: bold; } /* Keyword */
code > span.dt { color: #902000; } /* DataType */
code > span.dv { color: #40a070; } /* DecVal */
code > span.bn { color: #40a070; } /* BaseN */
code > span.fl { color: #40a070; } /* Float */
code > span.ch { color: #4070a0; } /* Char */
code > span.st { color: #4070a0; } /* String */
code > span.co { color: #60a0b0; font-style: italic; } /* Comment */
code > span.ot { color: #007020; } /* Other */
code > span.al { color: #ff0000; font-weight: bold; } /* Alert */
code > span.fu { color: #06287e; } /* Function */
code > span.er { color: #ff0000; font-weight: bold; } /* Error */
code > span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
code > span.cn { color: #880000; } /* Constant */
code > span.sc { color: #4070a0; } /* SpecialChar */
code > span.vs { color: #4070a0; } /* VerbatimString */
code > span.ss { color: #bb6688; } /* SpecialString */
code > span.im { } /* Import */
code > span.va { color: #19177c; } /* Variable */
code > span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code > span.op { color: #666666; } /* Operator */
code > span.bu { } /* BuiltIn */
code > span.ex { } /* Extension */
code > span.pp { color: #bc7a00; } /* Preprocessor */
code > span.at { color: #7d9029; } /* Attribute */
code > span.do { color: #ba2121; font-style: italic; } /* Documentation */
code > span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code > span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
</style></head><body><div class="sourceCode"><pre class="sourceCode"><code class="sourceCode"><span class="kw">package</span> P
<span class="kw">public</span>
<span class="kw">system</span> S
<span class="kw">features</span>
error: <span class="kw">in</span> <span class="kw">data</span> <span class="kw">port</span>;
<span class="kw">end</span> S;
<span class="kw">system</span> <span class="kw">implementation</span> S.i
<span class="kw">subcomponents</span>
component: <span class="kw">system</span>;
<span class="kw">properties</span>
p =&gt; <span class="st">&quot;a string&quot;</span>;
<span class="kw">annex</span> <span class="kw">emv2</span> {**
<span class="kw">use</span> <span class="kw">types</span> ErrorLibrary;
<span class="kw">component</span> <span class="kw">error</span> <span class="kw">behavior</span>
<span class="kw">transitions</span>
system -[ ip{<span class="fu">noerror</span>} ]-&gt; <span class="bu">same</span>;
<span class="kw">end</span> <span class="kw">component</span>;
**};
<span class="kw">end</span> S.i;
<span class="kw">end</span> P;
</code></pre></div></body>
<html><head><title>highlighttest.aadl</title><meta charset="utf-8"><meta name="generator" content="highlight-kate"><style type="text/css">div.sourceCode { overflow-x: auto; }
table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
margin: 0; padding: 0; vertical-align: baseline; border: none; }
table.sourceCode { width: 100%; line-height: 100%; background-color: #ffffff; color: #1f1c1b; }
td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; background-color: #ffffff; color: #a0a0a0; border-right: 1px solid #a0a0a0; }
td.sourceCode { padding-left: 5px; }
pre, code { color: #1f1c1b; background-color: #ffffff; }
code > span.kw { color: #1f1c1b; font-weight: bold; } /* Keyword */
code > span.dt { color: #0057ae; } /* DataType */
code > span.dv { color: #b08000; } /* DecVal */
code > span.bn { color: #b08000; } /* BaseN */
code > span.fl { color: #b08000; } /* Float */
code > span.cn { color: #aa5500; } /* Constant */
code > span.ch { color: #924c9d; } /* Char */
code > span.sc { color: #3daee9; } /* SpecialChar */
code > span.st { color: #bf0303; } /* String */
code > span.vs { color: #bf0303; } /* VerbatimString */
code > span.ss { color: #ff5500; } /* SpecialString */
code > span.im { color: #ff5500; } /* Import */
code > span.co { color: #898887; } /* Comment */
code > span.do { color: #607880; } /* Documentation */
code > span.an { color: #ca60ca; } /* Annotation */
code > span.cv { color: #0095ff; } /* CommentVar */
code > span.ot { color: #006e28; } /* Other */
code > span.fu { color: #644a9b; } /* Function */
code > span.va { color: #0057ae; } /* Variable */
code > span.cf { color: #1f1c1b; font-weight: bold; } /* ControlFlow */
code > span.op { color: #1f1c1b; } /* Operator */
code > span.bu { color: #644a9b; font-weight: bold; } /* BuiltIn */
code > span.ex { color: #0095ff; font-weight: bold; } /* Extension */
code > span.pp { color: #006e28; } /* Preprocessor */
code > span.at { color: #0057ae; } /* Attribute */
code > span.re { color: #0057ae; } /* RegionMarker */
code > span.in { color: #b08000; } /* Information */
code > span.wa { color: #bf0303; } /* Warning */
code > span.al { color: #bf0303; font-weight: bold; } /* Alert */
code > span.er { color: #bf0303; text-decoration: underline; } /* Error */
code > span. { color: #1f1c1b; } /* Normal */
</style></head><body><div class="sourceCode"><pre class="sourceCode"><code class="sourceCode"><span class="kw">package</span> P
<span class="kw">public</span>
<span class="kw">system</span> S
<span class="kw">features</span>
error: <span class="kw">in</span> <span class="kw">data</span> <span class="kw">port</span>;
<span class="kw">end</span> S;
<span class="kw">system</span> <span class="kw">implementation</span> S.i
<span class="kw">subcomponents</span>
component: <span class="kw">system</span>;
<span class="kw">properties</span>
p =&gt; <span class="st">&quot;a string&quot;</span>;
emv2 {**
use types ErrorLibrary;
component error behavior
transitions
<span class="kw">system</span> -[ ip{noerror} ]-&gt; same;
<span class="kw">end</span> component;
**};
<span class="kw">end</span> S.i;
<span class="kw">end</span> P;
</code></pre></div></body></html>
@lwrage
Copy link
Author

lwrage commented Jan 27, 2017

files created via
highlighting-kate --format=html highlighttest.aadl >highlighting-kate.html
skylighting --format=html highlighttest.aadl >skylighting.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment