savannah-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[savannah-help-public] [sr #109696] markdown verbatim (for code snippets


From: Peter Liscovius
Subject: [savannah-help-public] [sr #109696] markdown verbatim (for code snippets) does not respect white-space
Date: Wed, 19 Jun 2019 13:07:35 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:67.0) Gecko/20100101 Firefox/67.0

Follow-up Comment #5, sr #109696 (project administration):

Someone compared available webbrowser side based javascript syntax
highlighters.

They all work on code sections in the html content wrapped by pre-tags or
combinations of pre+code-tags.

https://webdesign.tutsplus.com/articles/25-syntax-highlighters-tried-and-tested--cms-23931


Here are some links for checking out if applicable and license.


https://github.com/syntaxhighlighter (MIT License)
<pre class="brush: js">

https://github.com/PrismJS/prism (MIT License)
<pre><code class="language-javascript">

https://github.com/highlightjs/highlight.js (own license)
<pre><code class="language-javascript">

https://github.com/ccampbell/rainbow (Apache License 2.0)
<pre><code data-language="javascript">

https://github.com/google/code-prettify (Apache License 2.0)
<pre class="prettyprint">


https://sourceforge.net/projects/jush/ (LICENSE not set yet)
https://github.com/vrana/jush (LICENSE not set yet)

And then there are server side parsers, which are - ummh -  special:

There is Python Pygments and PHPygments
https://github.com/capynet/PHPygments (own license)
and seems to be wide adopted according to http://pygments.org/faq/ . So a
serverside syntax highlighting is possible. Maybe not applicable due their
license or require change license needed.

My experience with GeSHi (https://github.com/GeSHi/geshi-1.0 (GPL 2) and fork
https://github.com/easybook/geshi ) which is used by Dokuwiki and Flyspray:
Slow and not solid as I wish (slowiness mitigated by caching to file/database
unless origin content changes). Probably will replace it in future.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/support/?109696>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]