From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gDr0D599XV+oAwAA0tVLHw (envelope-from ) for ; Sun, 13 Sep 2020 02:02:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cL8lCp99XV9jfgAAbx9fmQ (envelope-from ) for ; Sun, 13 Sep 2020 02:02:07 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7F8DA94060E for ; Sun, 13 Sep 2020 02:02:06 +0000 (UTC) Received: from localhost ([::1]:57578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHHL9-0007Hq-IP for larch@yhetil.org; Sat, 12 Sep 2020 22:02:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHHKi-0007HL-VH for emacs-orgmode@gnu.org; Sat, 12 Sep 2020 22:01:37 -0400 Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]:43495) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHHKh-000087-E8 for emacs-orgmode@gnu.org; Sat, 12 Sep 2020 22:01:36 -0400 Received: by mail-qt1-x836.google.com with SMTP id g3so10932505qtq.10 for ; Sat, 12 Sep 2020 19:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version; bh=W3qoNtIO3Ol1gQ0rND+htIbZA3R4VYET6BtfzZutVn4=; b=FBv5MluwXRB3euIxEPOil2xV6W84IpIivjzlg2txd7p4+HcDKlXqAmyCAeUhc6xNM6 k3zz0ygcaew2UlQfJEUIUuAtlvf7vLRHLIky/d35p6+5D+jRddg2FxMi+HRQPJv5mvSj Msxjub/ZlfDHQ8FSJlqBDLXN5olFd4vEga7P9gSupfcnRmiqkmzh6FtgTzPl4aHr1PZe /+6PT0tn2r0dxb4PD7bYpuceH7uEM6EYjSEqtQEsZquK+W0Rq5dO/AV4JalXsfuhrtyP 7LmABz6O4fesqeMDV9e0X6ODvmYg8XKjYDh00WTfoDXoeVZ4x6Cq2fitWcGmxzzlbDyo q4yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version; bh=W3qoNtIO3Ol1gQ0rND+htIbZA3R4VYET6BtfzZutVn4=; b=l/duVbbEWVpr4UVn8H8Eul+BilJB0EYh4mNNFG/oFrBDS3vDe4udmr4CKv0CnDF6fN DDcc4td5y8GlGIO+wufAIDHwT74ZJwKed/DI1q/KY1Bxr01VfmiBxpdSpWCHRKArjQkf 5FmJQWUuUaAKK3wF5ROZW80foM19YoKrM/3WTgJZWOmFmbHSLyr71JMLBbYlVJ0cXZkl n3Nltz2qrIDrpb+zeQUKas6+tOnsoNAyB7RmOtffDbFQAqhEYS5wmke2s32Pghr3rDjy Z93AtD8EtCLpyOBTMybBIFaYze5TrznCkpoRyBUxqfkfZJ2wUfff6jrhZT9z7/JOed8V hMRA== X-Gm-Message-State: AOAM533uSH8DvHPDgxlfEFCN7O5kAmEMWn2vl7Im7pi7EC99tF3dB6ZO FBgYUtVyRiMctMhUJ6SCRw== X-Google-Smtp-Source: ABdhPJyDRUQpIGFcocYtZc4xvhpRg3fxCn8MQ8XOVQN6wAsSxjpChHWU2vR1LhOznK0CKUraXYbDmQ== X-Received: by 2002:ac8:6f1c:: with SMTP id g28mr3848389qtv.225.1599962494031; Sat, 12 Sep 2020 19:01:34 -0700 (PDT) Received: from [192.168.1.118] (128.67-212-35-net.sccoast.net. [67.212.35.128]) by smtp.gmail.com with ESMTPSA id a24sm9020058qko.82.2020.09.12.19.01.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 12 Sep 2020 19:01:33 -0700 (PDT) Date: Sat, 12 Sep 2020 22:01:26 -0400 From: CRSHCMDR To: Tim Cross Message-ID: In-Reply-To: <87v9gipi19.fsf@gmail.com> References: <4a4f6286-0600-4e6a-90b9-174257e19a48@Spark> <87v9gipi19.fsf@gmail.com> Subject: Re: JS2 Syntax Highlighting for Source Blocks X-Readdle-Message-ID: ea762937-f3a5-4736-ba8e-b395e533dc9f@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5f5d7d7c_2ae8944a_ea01" Received-SPF: pass client-ip=2607:f8b0:4864:20::836; envelope-from=typkrft@gmail.com; helo=mail-qt1-x836.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=0.999, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=FBv5Mluw; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: iJoxC7/mTYYb --5f5d7d7c_2ae8944a_ea01 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 , wrot= e: > > CRSHCMDR writes: > > > Is it possible to use js2-mode instead of js-mode for the syntax high= lighting of code blocks in org-mode=3F The reason that I ask is that the = current js-mode syntax highlighting leaves something to be desired, and i= s from my perspective broken. =46or instance after declaring a variable, = the usage of that variable is no longer highlighted. You can see the diff= erence here https://imgur.com/a/4b2LyhE. > > > > I have tried using the =E2=80=98org-src-lang-modes, but I=E2=80=99m e= ither not setting it correctly, or I=E2=80=99m barking up the wrong tree.= > > > > What happens if you just use 'js2' as the language in the source block > header instead of javascript=3F > > > -- > Tim Cross --5f5d7d7c_2ae8944a_ea01 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
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 duplica= te emails, that was not intentional.&=23160;

Thanks,
Brandon
On Sep 12, 2020, 9:44 PM -0400, Tim= Cross <theophilusx=40gmail.com>, wrote:

CRSHCMDR <typkrft=40gmail.com> writes:

Is it possible to use js2-mode instead of j= s-mode for the syntax highlighting of code blocks in org-mode=3F The reas= on that I ask is that the current js-mode syntax highlighting leaves some= thing to be desired, and is from my perspective broken. =46or instance af= ter declaring a variable, the usage of that variable is no longer highlig= hted. You can see the difference here https://imgur.com/a/4b2LyhE.

I have tried using the =E2=80=98org-src-lang-modes, but I=E2=80=99m eithe= r not setting it correctly, or I=E2=80=99m barking up the wrong tree.


What happens if you just use 'js2' as the language in the source block header instead of javascript=3F


--
Tim Cross
--5f5d7d7c_2ae8944a_ea01--