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?
<pre class="csharp" name="code">
yourself? I mean it would probably take less time than trying to export it the "right" way.