E-com DevBlog Spider-ball-vacuum

30Oct/080

Quick reminder on CodeBox-ing

Every once in a while one of us logs on and would like to post some code... then we forget how to make it pretty, so here are some quick instructions for posting code here... (most of this is taken directly from the codebox plugin page.

In the "HTML" or code view of posting here in wordpress, add " <pre lang="LANGUAGE" line="1" file="download.txt" colla="+">" and then start coding (or paste your code in), when finished end it with a "</pre>" and you'll be set.  I'm not sure if it's fixed or a bug or what, but if you are coding on the HTML tab, and put in your pre-tag and then switch to Visual, it'll break the pre-tag.  So be careful with that... For options (parameters), use the following:

  • lang="LANGUAGE" - LANGUAGE is a GeSHi supported language syntax.
  • file="download.txt" - The file will create a code downloading attribute.
  • line="N" - The N is the starting line number.
  • colla="+/-" - The +/- will expand/collapse the codebox.
  • line,file,colla is optional.

the GeSHi langs are:

  • Actionscript
  • ADA
  • Apache Log
  • AppleScript
  • ASM
  • ASP
  • AutoIT
  • Backus-Naur
  • Bash
  • BlitzBasic
  • C
  • C for Macs
  • C#
  • C++
  • CAD DCL
  • CadLisp
  • CFDG
  • ColdFusion
  • CSS
  • Delphi
  • DIV
  • DOS
  • Eiffel
  • Fortran
  • FreeBasic
  • GML
  • Groovy
  • HTML
  • Inno
  • IO
  • Java
  • Java 5
  • Javascript
  • LaTex
  • Lisp
  • Lua
  • Microprocessor
  • mIRC
  • MySQL
  • NSIS
  • Objective C
  • OCaml
  • OpenOffice BASIC
  • Oracle 8 SQL
  • Pascal
  • Perl
  • PHP
  • PL/SQL
  • Python
  • Q(uick)BASIC
  • robots.txt
  • Ruby
  • SAS
  • Scheme
  • SDLBasic
  • Smalltalk
  • Smarty
  • SQL
  • T-SQL
  • TCL
  • thinBasic
  • Uno IDL
  • VB.NET
  • Visual Basic
  • Visual Fox Pro
  • Winbatch
  • X++
  • XML
  • z80 ASM

Enjoy...

Print This Post Print This Post