5
1
I have been using org-mode to author blog posts about programming. For this, I have included inline code segments in my .org file like this:
#+BEGIN_SRC csharp
public class UserBuilder
{
private string _firstName;
private string _lastName;
...
#+END_SRC
When I use the export html function, It gets formatted like this:
<pre class="src src-csharp"><span style="color: #7f007f;">public</span> <span style="color: #7f007f;">class</span> <span style="color: #228b22;">UserBuilder</span>
{
<span style="color: #7f007f;">private</span> <span style="color: #228b22;">string</span> <span style="color: #a0522d;">_firstName</span>;
<span style="color: #7f007f;">private</span> <span style="color: #228b22;">string</span> <span style="color: #a0522d;">_lastName</span>;
...
</pre>
As I use a JavaScript on my blog to format code fragments, I would just have liked the output to be like this:
<pre name="code" class="csharp">
public class UserBuilder
{
private string _firstName;
private string _lastName;
...
</pre>
Can that be done, and how?
I don't use emacs but just an idea, can't you just copy/paste the code into a
<pre class="csharp" name="code">
yourself? I mean it would probably take less time than trying to export it the "right" way. – OneOfOne – 2012-11-06T01:56:39.137Some sort of feedback would be nice... – Trudbert – 2012-11-09T13:10:57.020
And poof goes the bounty... – Trudbert – 2012-11-10T18:53:17.707