veg / hyphy-site

HyPhy Markdown Site
MIT License
0 stars 8 forks source link

Ugly code blocks #30

Closed spond closed 7 years ago

spond commented 7 years ago

Please note that current code blocks are rendered as

<pre>
<code></code>
</pre>

which creates undesirable graduated shading two levels) and excessive padding. I personally would like to see code rendered like

<pre style = 'font-family: courier; font-size: 12pt; color: #85274e; background-color: rgba(0,0,0,0.05)'>
LikelihoodFunction LF = (filter, tree);
</pre>
screen shot 2017-03-30 at 10 03 10 pm
stevenweaver commented 7 years ago

Thank you Sergei, I will take a look at this tomorrow morning.

stevenweaver commented 7 years ago

Hi Sergei,

I think if we annotate the code blocks with ```js, the styling would look very close to what you are looking for out of the box.

Please see https://stevenweaver.github.io/hyphy-site/about/

spond commented 7 years ago

Dear @stevenweaver,

This is perfect.

Best, Sergei