* JS2 Syntax Highlighting for Source Blocks
[not found] <4a4f6286-0600-4e6a-90b9-174257e19a48@Spark>
@ 2020-09-12 19:04 ` CRSHCMDR
2020-09-13 1:44 ` Tim Cross
0 siblings, 1 reply; 3+ messages in thread
From: CRSHCMDR @ 2020-09-12 19:04 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 559 bytes --]
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.
Very Respectfully,
Brandon
[-- Attachment #2: Type: text/html, Size: 879 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: JS2 Syntax Highlighting for Source Blocks
2020-09-12 19:04 ` JS2 Syntax Highlighting for Source Blocks CRSHCMDR
@ 2020-09-13 1:44 ` Tim Cross
2020-09-13 2:01 ` CRSHCMDR
0 siblings, 1 reply; 3+ messages in thread
From: Tim Cross @ 2020-09-13 1:44 UTC (permalink / raw)
To: CRSHCMDR; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: JS2 Syntax Highlighting for Source Blocks
2020-09-13 1:44 ` Tim Cross
@ 2020-09-13 2:01 ` CRSHCMDR
0 siblings, 0 replies; 3+ messages in thread
From: CRSHCMDR @ 2020-09-13 2:01 UTC (permalink / raw)
To: Tim Cross; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 993 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1696 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-13 2:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4a4f6286-0600-4e6a-90b9-174257e19a48@Spark>
2020-09-12 19:04 ` JS2 Syntax Highlighting for Source Blocks CRSHCMDR
2020-09-13 1:44 ` Tim Cross
2020-09-13 2:01 ` CRSHCMDR
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).