BlockLeftTop, PRELOAD BlockLeftBottom, PRELOAD BlockLeftStretch, PRELOAD BlockTop, PRELOAD BlockBottom, PRELOAD BlockStretch, PRELOAD BlockRightTop, PRELOAD BlockRightBottom, PRELOAD BlockRightStretch, PRELOAD
DeltaEngine

Posting code on this blog

by Benjamin Nitschke 16. December 2009 14:00

A few little tricks on how to blog code or any text files for that matter (.txt, .xml, .cs, .cpp, etc.):

You can use the Code Style from the Editor, but that code will just be monofont and handle the spacing, newlines and tabs if you paste it into the non-html editor.

A better way, but sadly incompatible with the non-html editor is to use the following tags (must be done in raw html mode and you should do it when all the rest of the text is written):


<pre class="brush: csharp">

or use


<pre class="brush: xml">

for xml, etc.

When you are done with your code block, just close it with


</pre>



To post images in the upper right corner like I always do, just upload an image, go to html mode and copy it to the very start of the blog post and add style="float:right" to the img tag!

References:

  • Other brush names:
Bash/shellbash, shell
C#c-sharp, csharp
C++cpp, c
CSScss
Delphidelphi, pas, pascal
Diffdiff, patch
Groovygroovy
JavaScriptjs, jscript, javascript
Javajava
JavaFXjfx, javafx
Perlperl, pl
PHPphp
Plain Textplain, text
PowerShellps, powershell
Pythonpy, python
Rubyrails, ror, ruby
Scalascala
SQLsql
Visual Basicvb, vbnet
XMLxml, xhtml, xslt, html, xhtml

Comments


12/17/2009 10:11:39 AM #

Pingback from xmldeveloperindia.com

Posting code on this blog | XML Developer India

xmldeveloperindia.com | Reply



1/25/2010 12:28:00 AM #

been searching this for some time now - i guess luck is more advanced than search engines Smile

cash advance | Reply



1/29/2010 2:06:53 PM #

It is common sense to take a method and try it. If it fails, admit it frankly and try another. But above all, try something.

instant advance | Reply



2/4/2010 12:48:13 PM #

It's really great post, i also searching for something like that, good information, I would like to appreciate your work, Thanks for sharing

Online diamond jewelry | Reply



2/5/2010 12:23:08 PM #

Action itself, so long as I am convinced that it is right action, gives me satisfaction.

payday loans | Reply



2/12/2010 11:13:24 AM #

Top post. I look forward to reading more. Cheers

SEO | Reply



2/12/2010 12:38:08 PM #

Really appreciate this post. It’s hard to sort the good from the bad sometimes, but I think you’ve nailed it!

bamboo floors | Reply



2/12/2010 12:48:37 PM #

Why didn’t I find this post earlier? Keep up the good work!

car loans melbourne | Reply



2/23/2010 8:49:16 AM #

Nice job, it’s a great post. The info is good to know!

bookkeeper | Reply



3/2/2010 8:00:44 AM #

Why didn’t I find this post earlier? Keep up the good work!
http://www.unitylink.com.au/

australian employment | Reply



3/2/2010 10:51:32 AM #

Top post. I look forward to reading more. Cheers

bookkeepers | Reply



4/14/2010 5:26:44 PM #

thats some great info thanks - http://www.aboutmybaby.info

us | Reply



4/18/2010 5:44:47 PM #

Where did you learn this stuff?

us | Reply



4/22/2010 3:44:50 AM #

one day i went shopping outside,and in an ed hardy store,I found some kinds of ed hardy i love most they are Your website is really good Thank you for the information

ed hardy | Reply



4/27/2010 11:29:41 PM #

I\'m happy I found this blog, I couldnt discover any info on this subject matter prior to. I also run a site and if you want to ever serious in a little bit of guest writing for me if possible feel free to let me know, i\'m always look for people to check out my site. Please stop by and leave a comment sometime!

Rapidshare | Reply



4/30/2010 11:46:06 AM #

To win without risk is to triumph without glory.

fast payday loans | Reply



5/4/2010 3:09:56 PM #

What I liked about her, she didn't give you a lot of horse manure about what a great guy her father was.

Links of London Jewellery | Reply



5/4/2010 5:14:16 PM #

Top Rapidshare Search engine

Rapidshare Search engine | Reply


Add comment




biuquote
  • Comment
  • Preview
Loading



Disclaimer: The opinions expressed in this blog are own personal opinions and do not represent the companies view.
© 2000-2011 exDream GmbH & MobileBits GmbH. All rights reserved. Legal/Impressum

Poll

Which platform should Soulcraft be released on next?











Show Results Poll Archive

Recent Games

Soulcraft

Fireburst

Jobs @ exDream

Calendar

<<  May 2012  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910