From: CRSHCMDR <typkrft@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Javascript Syntax Highlighting
Date: Sat, 12 Sep 2020 01:38:59 -0400 [thread overview]
Message-ID: <cddad2b1-82b8-47d9-a3eb-4ebba209978b@Spark> (raw)
In-Reply-To: <b596d8db-479f-44df-be42-149bfa68c1ed@Spark>
[-- 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: 873 bytes --]
parent reply other threads:[~2020-09-12 19:38 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <b596d8db-479f-44df-be42-149bfa68c1ed@Spark>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cddad2b1-82b8-47d9-a3eb-4ebba209978b@Spark \
--to=typkrft@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).