Jan Seeger <jan.see...@thenybble.de> writes:

> Hello List!
>
> I was just wondering if org-mode can do (programming language) syntax 
> highlighting like muse
> when publishing to HTML or similar. If yes, how?
>

Hi Jan,

If you would like to include an entire file as highlighted html you can
use the include directive as described here

http://orgmode.org/manual/Include-files.html

If you just want to highlight a small snippet of code you can place the
code in a source code block as follows

--8<---------------cut here---------------start------------->8---
#+begin_src emacs-lisp
(defun foo (a b)
  (if (> a b)
      (* a b)
    (foo (foo (- b a) a) (- a b))))
#+end_src
--8<---------------cut here---------------end--------------->8---

Best -- Eric

>
> Greetings,
> Jan
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to