Highlight of Matlab code
If I understood well, Marked uses highlight.js
to
highlight code. I'm trying to render some Matlab code but it's not
highlighted properly. It looks like highlight.js
supports Matlab though (scroll down at http://softwaremaniacs.org/media/soft/highlight/test.html).
I'm attaching a test Markdown file with the same code so you can
compare the rendering. My options are set as follows:
- Convert fenced code blocks is ON
- Automatic syntax highlighting is ON with
github.css
(I tried other css options; the result is the same)
I also tried turning "Convert fenced code blocks" off and simply indenting my code but the result is the same.
Any ideas?
Thanks!
- test-matlab.md 1.32 KB
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 02 Jan, 2013 02:42 PM
At the time that 1.4 was released, Matlab support wasn't included in Highlight.js. It's updated for the next release. If you can't wait, let me know and I can help you hack the new version into the bundle until the update.
2 Posted by Some User on 02 Jan, 2013 03:02 PM
That's awesome. Many thanks! I can wait until the next release. Do you already know when that will be?
Support Staff 3 Posted by Brett on 02 Jan, 2013 03:12 PM
I don't, yet, but the beta is almost stable and I just have some logistics to figure out.
4 Posted by Some User on 18 Jun, 2013 08:03 PM
I'm wondering if there are updates on this.
Support Staff 5 Posted by Brett on 22 Jun, 2013 06:18 PM
Still working out the details for the next major release, but I will update highlight.js for the current App Store version as soon as possible.
6 Posted by Some User on 27 Sep, 2013 07:44 PM
Is the above available in Marked 2?
Support Staff 7 Posted by Brett on 27 Sep, 2013 08:16 PM
Hadn't tested it before, but it looks pretty solid: http://ckyp.us/HmWF
-Brett