You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
Some of our pages list a lot of commands and code but with the current style, it can be difficult to visualize these.
For instance, if we use code from markdown, the following markup will be generated:
<p>simple command</p><p><codeclass="language-plaintext highlighter-rouge">echo "Hello World"</code></p><p>JS code</p><divclass="language-javascript highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kd">function</span><spanclass="nx">sayHello</span><spanclass="p">(</span><spanclass="nx">name</span><spanclass="p">)</span><spanclass="p">{</span><spanclass="k">if</span><spanclass="p">(</span><spanclass="o">!</span><spanclass="nx">name</span><spanclass="p">)</span><spanclass="p">{</span><spanclass="nx">console</span><spanclass="p">.</span><spanclass="nx">log</span><spanclass="p">(</span><spanclass="dl">'</span><spanclass="s1">Hello World</span><spanclass="dl">'</span><spanclass="p">);</span><spanclass="p">}</span><spanclass="k">else</span><spanclass="p">{</span><spanclass="nx">console</span><spanclass="p">.</span><spanclass="nx">log</span><spanclass="p">(</span><spanclass="s2">`Hello </span><spanclass="p">${</span><spanclass="nx">name</span><spanclass="p">}</span><spanclass="s2">`</span><spanclass="p">);</span><spanclass="p">}</span><spanclass="p">}</span></code></pre></div></div><p>another type of commands: <codeclass="language-plaintext highlighter-rouge">foo bar</code></p>
Screenshot of the result
Using syntax highlighting and added a background color to code, samp and kbd would greatly improve the visibility, e.g.
Given that pages containing code will likely be generated from markdown files using jekyll, it may make sense to use one of the jekyll syntax highlight styles. FYI, I used monokai.sublime from https://github.com/mzlogin/rouge-themes/tree/master/dist to generate the above.
The text was updated successfully, but these errors were encountered:
Describe the issue
Some of our pages list a lot of commands and code but with the current style, it can be difficult to visualize these.
For instance, if we use
code
from markdown, the following markup will be generated:Screenshot of the result
Using syntax highlighting and added a background color to
code
,samp
andkbd
would greatly improve the visibility, e.g.Given that pages containing code will likely be generated from markdown files using jekyll, it may make sense to use one of the jekyll syntax highlight styles. FYI, I used
monokai.sublime
from https://github.com/mzlogin/rouge-themes/tree/master/dist to generate the above.The text was updated successfully, but these errors were encountered: