Javascript Syntax Highlighting

2020-09-12 Thread CRSHCMDR
Is it possible to use js2-mode instead of js-mode for the syntax highlighting of code blocks in org-mode? The reason that I ask is that the current js-mode syntax highlighting leaves something to be desired, and is from my perspective broken. For instance after declaring a variable, the usage of

Re: [O] Javascript syntax highlighting?

2015-05-25 Thread Peter Davis
David Engster 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

Re: [O] Javascript syntax highlighting?

2015-05-25 Thread David Engster
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

Re: [O] Javascript syntax highlighting?

2015-05-25 Thread Peter Davis
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?

2015-05-25 Thread Tory S. Anderson
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 writes: > If I edit a Ja

Re: [O] Javascript syntax highlighting?

2015-05-25 Thread David Engster
Peter Davis writes: > #+BEGIN_SRC Javascript Don't capitalize, use 'javascript'. -David

[O] Javascript syntax highlighting?

2015-05-25 Thread Peter Davis
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 p