From mboxrd@z Thu Jan 1 00:00:00 1970 From: torys.anderson@gmail.com (Tory S. Anderson) Subject: Re: Javascript syntax highlighting? Date: Mon, 25 May 2015 10:48:39 -0400 Message-ID: <87h9r090hk.fsf@gmail.com> References: <556330CA.9090500@pfdstudio.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwtgP-000781-CK for emacs-orgmode@gnu.org; Mon, 25 May 2015 10:48:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwtgO-0006HN-EH for emacs-orgmode@gnu.org; Mon, 25 May 2015 10:48:49 -0400 Received: from mail-qg0-x22f.google.com ([2607:f8b0:400d:c04::22f]:34904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwtgO-0006H8-As for emacs-orgmode@gnu.org; Mon, 25 May 2015 10:48:48 -0400 Received: by qgew3 with SMTP id w3so46125897qge.2 for ; Mon, 25 May 2015 07:48:47 -0700 (PDT) In-Reply-To: <556330CA.9090500@pfdstudio.com> (Peter Davis's message of "Mon, 25 May 2015 10:25:14 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Peter Davis Cc: emacs-orgmode@gnu.org 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 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/