emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JS2 Syntax Highlighting for Source Blocks


From: CRSHCMDR
Subject: Re: JS2 Syntax Highlighting for Source Blocks
Date: Sat, 12 Sep 2020 22:01:26 -0400

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 <theophilusx@gmail.com>, wrote:

CRSHCMDR <typkrft@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

[Prev in Thread] Current Thread [Next in Thread]