Re: [O] Javascript syntax highlighting?
I use somethign similar for blogs I write in orgmode. In my case, it depends on having a server-side library for syntax highlighting: I use google-code-prettify[1] on the server side and then just paste the exported code from orgmode, and it works for me. Peter Davis p...@pfdstudio.com writes: If I edit a JavaScript file in emacs, I get beautiful syntax highlighting. However, if I put the same code in a .org file between #+BEGIN_SRC Javascript ... #+END_SRC I get nothing but plain black text. Is there any way to get the syntax highlighting in HTML output, so I can use it in a blog post? Thanks, -pd Footnotes: [1] https://code.google.com/p/google-code-prettify/
Re: [O] Javascript syntax highlighting?
Peter Davis writes: On 5/25/15 10:44 AM, David Engster wrote: Peter Davis writes: #+BEGIN_SRC Javascript Don't capitalize, use 'javascript'. Thanks, David. That doesn't appear to make any difference. Neither does js. Do you mean you don't see any highlighting in Emacs, or only in the export? What does 'C-h v major-mode RET' say when you are editing a Javascript file? -David
Re: [O] Javascript syntax highlighting?
David Engster d...@randomsample.de writes: Peter Davis writes: On 5/25/15 10:44 AM, David Engster wrote: Peter Davis writes: #+BEGIN_SRC Javascript Don't capitalize, use 'javascript'. Thanks, David. That doesn't appear to make any difference. Neither does js. Do you mean you don't see any highlighting in Emacs, or only in the export? Either one. What does 'C-h v major-mode RET' say when you are editing a Javascript file? I've tried both js-mode and js2-mode. It doesn't seem to make any difference. Thanks! -pd
Re: [O] Javascript syntax highlighting?
On 5/25/15 10:44 AM, David Engster wrote: Peter Davis writes: #+BEGIN_SRC Javascript Don't capitalize, use 'javascript'. Thanks, David. That doesn't appear to make any difference. Neither does js. Thanks, -pd -- Peter Davis The Tech Curmudgeon http://www.techcurmudgeon.com
Re: [O] Javascript syntax highlighting?
Peter Davis writes: #+BEGIN_SRC Javascript Don't capitalize, use 'javascript'. -David