mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Add syntax highlighting
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
<link rel="stylesheet" href="http://wtfutil.com/css/poole.css">
|
||||
<link rel="stylesheet" href="http://wtfutil.com/css/hyde.css">
|
||||
<link rel="stylesheet" href="http://wtfutil.com/css/wtf.css">
|
||||
<link rel="stylesheet" href="http://wtfutil.com/css/syntax.css">
|
||||
<!-- Font-Awesome -->
|
||||
<script defer src="https://use.fontawesome.com/releases/v5.0.9/js/all.js" integrity="sha384-8iPTk2s/jMVj81dnzb/iFR2sdA7u06vHJyyLlAd4snFpCl/SnyUjRrbdJsw1pGIl" crossorigin="anonymous"></script>
|
||||
|
||||
@@ -50,9 +51,11 @@
|
||||
|
||||
<div>
|
||||
<h3 style="color: white;">Content</h3>
|
||||
|
||||
<ul style="list-style-type: none;">
|
||||
<li class="sidebar-list-item-1"><a href="/posts/installation/" class="disabled">Installation</a></li>
|
||||
<li class="sidebar-list-item-1"><a href="/posts/configuration/">Configuration</a></li>
|
||||
<li class="sidebar-list-item-1"><a href="/posts/howto/" class="disabled">How to Use</a></li>
|
||||
</ul>
|
||||
|
||||
<ul style="list-style-type: none;">
|
||||
@@ -110,10 +113,7 @@
|
||||
<p><img src="/imgs/modules/textfile.png" width="320" height="133" alt="textfile screenshot" /></p>
|
||||
|
||||
<h2 id="source-code">Source Code</h2>
|
||||
|
||||
<pre><code class="language-bash">wtf/textfile/
|
||||
</code></pre>
|
||||
|
||||
<div class="highlight"><pre class="chroma"><code class="language-bash" data-lang="bash">wtf/textfile/</code></pre></div>
|
||||
<h2 id="required-env-variables">Required ENV Variables</h2>
|
||||
|
||||
<p>None.</p>
|
||||
@@ -127,18 +127,15 @@
|
||||
<span class="caption">Action:</span> Opens the text file in whichever text editor is associated with that file type.</p>
|
||||
|
||||
<h2 id="configuration">Configuration</h2>
|
||||
|
||||
<pre><code class="language-yaml">textfile:
|
||||
enabled: true
|
||||
filename: "notes.md"
|
||||
position:
|
||||
top: 5
|
||||
left: 4
|
||||
height: 2
|
||||
width: 1
|
||||
refreshInterval: 15
|
||||
</code></pre>
|
||||
|
||||
<div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">textfile<span class="p">:</span><span class="w">
|
||||
</span><span class="w"> </span>enabled<span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="w">
|
||||
</span><span class="w"> </span>filename<span class="p">:</span><span class="w"> </span><span class="s2">"notes.md"</span><span class="w">
|
||||
</span><span class="w"> </span>position<span class="p">:</span><span class="w">
|
||||
</span><span class="w"> </span>top<span class="p">:</span><span class="w"> </span><span class="m">5</span><span class="w">
|
||||
</span><span class="w"> </span>left<span class="p">:</span><span class="w"> </span><span class="m">4</span><span class="w">
|
||||
</span><span class="w"> </span>height<span class="p">:</span><span class="w"> </span><span class="m">2</span><span class="w">
|
||||
</span><span class="w"> </span>width<span class="p">:</span><span class="w"> </span><span class="m">1</span><span class="w">
|
||||
</span><span class="w"> </span>refreshInterval<span class="p">:</span><span class="w"> </span><span class="m">15</span></code></pre></div>
|
||||
<h3 id="attributes">Attributes</h3>
|
||||
|
||||
<p><code>enabled</code> <br />
|
||||
|
||||
Reference in New Issue
Block a user