* how export highlight code
@ 2011-09-18 2:20 a machine of awareness
2011-09-18 2:35 ` Jambunathan K
0 siblings, 1 reply; 3+ messages in thread
From: a machine of awareness @ 2011-09-18 2:20 UTC (permalink / raw)
To: emacs-orgmode
I'm using org-mode v7.01g.
I've tried to export a code block like this:
#+BEGIN_SRC c -n
static void doData()
{
if (_pStatus->switchChange>0x00)
{
_pStatus->switchChange = 0x00;
_pStatus->workStatus = DATABASE_PRO_WOR_WAIT;
return;
}
...
}
#+END_SRC
The result html doesn't highlight the code. Instead it gives me:
<pre class="example"><span class="linenr"> 1: </span>
<span class="linenr"> 2: </span>static void doData()
<span class="linenr"> 3: </span>{
<span class="linenr"> 5: </span> if (_pStatus->switchChange>0x00)
<span class="linenr"> 6: </span> {
<span class="linenr"> 7: </span> _pStatus->switchChange = 0x00;
<span class="linenr"> 9: </span> _pStatus->workStatus = DATABASE_PRO_WOR_WAIT;
<span class="linenr">10: </span> return;
<span class="linenr">11: </span> }
<span class="linenr">12: </span> ...
<span class="linenr">13: </span>}
</pre>
And I have not changed any option related to org-babel or the exporting function.
So how can I make the syntax highlighting work for exporting to html?
--
a machine of awareness
Debian、Emacs+Gnus
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-09-20 13:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-18 2:20 how export highlight code a machine of awareness
2011-09-18 2:35 ` Jambunathan K
2011-09-20 13:33 ` a machine of awareness
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).