From: torys.anderson@gmail.com (Tory S. Anderson)
To: Peter Davis <pfd@pfdstudio.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Javascript syntax highlighting?
Date: Mon, 25 May 2015 10:48:39 -0400 [thread overview]
Message-ID: <87h9r090hk.fsf@gmail.com> (raw)
In-Reply-To: <556330CA.9090500@pfdstudio.com> (Peter Davis's message of "Mon, 25 May 2015 10:25:14 -0400")
I use somethign similar for blogs I write in orgmode. In my case, it depends on having a server-side library for syntax highlighting: I use google-code-prettify[1] on the server side and then just paste the exported code from orgmode, and it works for me.
Peter Davis <pfd@pfdstudio.com> writes:
> If I edit a JavaScript file in emacs, I get beautiful syntax
> highlighting. However, if I put the same code in a .org file between
>
> #+BEGIN_SRC Javascript
> ...
> #+END_SRC
>
> I get nothing but plain black text. Is there any way to get the syntax
> highlighting in HTML output, so I can use it in a blog post?
>
> Thanks,
> -pd
Footnotes:
[1] https://code.google.com/p/google-code-prettify/
prev parent reply other threads:[~2015-05-25 14:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-25 14:25 Javascript syntax highlighting? Peter Davis
2015-05-25 14:44 ` David Engster
2015-05-25 14:50 ` Peter Davis
2015-05-25 16:13 ` David Engster
2015-05-25 16:26 ` Peter Davis
2015-05-25 14:48 ` Tory S. Anderson [this message]
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=87h9r090hk.fsf@gmail.com \
--to=torys.anderson@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=pfd@pfdstudio.com \
/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).