all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* coloring source for scala
@ 2012-08-30  4:23 Alexandre Russel
  2012-08-30  4:25 ` Bastien
  0 siblings, 1 reply; 6+ messages in thread
From: Alexandre Russel @ 2012-08-30  4:23 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: coloring source for scala
  2012-08-30  4:23 coloring source for scala Alexandre Russel
@ 2012-08-30  4:25 ` Bastien
  2012-08-30  5:41   ` Alexandre Russel
  0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2012-08-30  4:25 UTC (permalink / raw)
  To: Alexandre Russel; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: coloring source for scala
  2012-08-30  4:25 ` Bastien
@ 2012-08-30  5:41   ` Alexandre Russel
  2012-08-30  6:33     ` Bastien
  2012-08-30  8:50     ` Thorsten Jolitz
  0 siblings, 2 replies; 6+ messages in thread
From: Alexandre Russel @ 2012-08-30  5:41 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: coloring source for scala
  2012-08-30  5:41   ` Alexandre Russel
@ 2012-08-30  6:33     ` Bastien
  2012-08-30  8:50     ` Thorsten Jolitz
  1 sibling, 0 replies; 6+ messages in thread
From: Bastien @ 2012-08-30  6:33 UTC (permalink / raw)
  To: Alexandre Russel; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: coloring source for scala
  2012-08-30  5:41   ` Alexandre Russel
  2012-08-30  6:33     ` Bastien
@ 2012-08-30  8:50     ` Thorsten Jolitz
  2012-09-03  3:51       ` Alexandre Russel
  1 sibling, 1 reply; 6+ messages in thread
From: Thorsten Jolitz @ 2012-08-30  8:50 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: coloring source for scala
  2012-08-30  8:50     ` Thorsten Jolitz
@ 2012-09-03  3:51       ` Alexandre Russel
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Russel @ 2012-09-03  3:51 UTC (permalink / raw)
  To: Thorsten Jolitz; +Cc: emacs-orgmode

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
>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-09-03  3:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-30  4:23 coloring source for scala Alexandre Russel
2012-08-30  4:25 ` Bastien
2012-08-30  5:41   ` Alexandre Russel
2012-08-30  6:33     ` Bastien
2012-08-30  8:50     ` Thorsten Jolitz
2012-09-03  3:51       ` Alexandre Russel

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.