ccampbell / rainbow

Simple syntax highlighting library written in javascript
http://rainbowco.de
Apache License 2.0
3.3k stars 465 forks source link

Rainbow shows HTML-<br> in C-Code #217

Open daUser opened 7 years ago

daUser commented 7 years ago

Hi, i use Rainbow for the first Time. Download from the Offical-Homepage (https://craig.is/making/rainbows). I want to use Rainbow for C(C#)-Code in the small CMS "Mozilo". Rainbow shows on my Code the HTML-Linefeed-Tags (<br>). Screenshot: grafik Link to the Page: http://www.da-user.de/Technik%2C%20Strom%20%26%20Programmieren.html Small code excerpt from the MoziloCMS in Mozilocode:

[ueber3|--- more Coderows ---]
[rainbow_CodeHighlighter=C|using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MMDSScv
^{
    class Program
    ^{
(....)
]
daUser commented 7 years ago

Oh, i forgot: The rainbow_CodeHighlighter-Statement does this: rainbow_CodeHighlighter = <pre><code data-language="{DESCRIPTION}">{VALUE}</code></pre>