If I use js2 I lose all syntax highlighting, if I use js or javascript I get 
the same syntax highlighting.

Also sorry for the duplicate emails, that was not intentional.

Thanks,
Brandon
On Sep 12, 2020, 9:44 PM -0400, Tim Cross <theophil...@gmail.com>, wrote:
>
> CRSHCMDR <typk...@gmail.com> writes:
>
> > 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 that variable is no longer highlighted. You can see the difference 
> > here https://imgur.com/a/4b2LyhE.
> >
> > I have tried using the ‘org-src-lang-modes, but I’m either not setting it 
> > correctly, or I’m barking up the wrong tree.
> >
>
> What happens if you just use 'js2' as the language in the source block
> header instead of javascript?
>
>
> --
> Tim Cross

Reply via email to