Source Code Formatting

Have Computer Code to be inserted in a book page? No Problem.

Just switch to source view in your editor screen and type the code inside a <codeformat language="c"> </codeformat> tag.

Languages supported:

ABAP, ActionScript, Ada, Apache Log, AppleScript, ASM, ASP, AutoIt, Bash, BlitzBasic, bnf, C, C (Mac), CAD DCL, CAD Lisp, CFDG, ColdFusion, C++, C++ (QT), C#, CSS, D, Delphi, Diff, DIV, DOS, dot, Eiffel, Fortran, FreeBasic, genero, GML, Groovy, Haskell, HTML, Uno Idl, INI, Inno, Io, Java, Java(TM) 2 Platform Standard Edition 5.0, Javascript, LaTeX, Lisp, Lua, Motorola 68000 Assembler, Matlab M, mIRC Scripting, Microchip Assembler, MySQL, NSIS, Objective C, OCaml, OpenOffice.org Basic, Oracle 8 SQL, Pascal, per, Perl, PHP, PL/SQL, Python, QBasic/QuickBASIC, Rails, Microsoft Registry, robots.txt, Ruby, SAS, Scheme, sdlBasic, Smalltalk, Smarty, SQL, TCL, Text, thinBasic, T-SQL, Visual Basic, vb.net, VHDL, Visual Fox Pro, Winbatch, XML, X++, ZiLOG Z80 Assembler.

Examples:

  1. #include <stdio.h">
  2. int a;
  3.  
  4. void main(){
  5. printf("Hello World!");
  6. }

 

Remember!

The code will not be visible in your WYSIWYG editor - it has to be edited in the Source mode only. Sorry about that!

Share |