[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: JS2 Syntax Highlighting for Source Blocks
From: |
Tim Cross |
Subject: |
Re: JS2 Syntax Highlighting for Source Blocks |
Date: |
Sun, 13 Sep 2020 11:44:18 +1000 |
User-agent: |
mu4e 1.5.5; emacs 27.1.50 |
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