Hi, I have some source code in scala, how can I get the color when exporting to html ? ie: #+begin_src scala case class foo() #+end_src Alex
Hi Alexandre,
Alexandre Russel <alexandre@russel.fr> writes:
> I have some source code in scala, how can I get the color when
> exporting to html ?
(setq org-src-fontify-natively t)
HTH,
--
Bastien
thanks for your quick answer
>
> (setq org-src-fontify-natively t)
>
it doesn't give exactly what I was looking for. This fontify the code
inside my org file.
Now, when I set the language to 'java', I have color, but when I set
it to scala, I don't have nice color.
Is there a way to have color for scala ?
Alex
Alexandre Russel <alexandre@russel.fr> writes: > Is there a way to have color for scala ? You'd need a scala-mode to handle the fontification, apparently there is no scala-mode in Emacs yet. I found[1] one here: ~$ svn co http://lampsvn.epfl.ch/svn-repos/scala/scala-tool-support/trunk/src/emacs/ scala-mode HTH, [1] http://www.scala-lang.org/node/354 -- Bastien
Alexandre Russel <alexandre@russel.fr> writes: > Is there a way to have color for scala ? Don't know about the colors, but I think ENSIME is the enhanced Scala mode for Emacs: https://github.com/aemoncannon/ensime http://jawher.net/2011/01/17/scala-development-environment-emacs-sbt-ensime/ -- cheers, Thorsten
thanks for your help, I've put it all in a post http://arussel.blogspot.be/2012/09/showing-scala-code-with-orgmode-to-code.html On Thu, Aug 30, 2012 at 10:50 AM, Thorsten Jolitz <tjolitz@googlemail.com> wrote: > Alexandre Russel <alexandre@russel.fr> writes: > >> Is there a way to have color for scala ? > > > Don't know about the colors, but I think ENSIME is the enhanced Scala > mode for Emacs: > > https://github.com/aemoncannon/ensime > > http://jawher.net/2011/01/17/scala-development-environment-emacs-sbt-ensime/ > > > -- > cheers, > Thorsten > >