patvdv
9th June 2002, 22:35
We are introducing a new feature/vbcode extension on baanboard which is mainly aimed at our developer members. Thanks to the good work of our moderator Vamsi, we now have an integration between the vbulletin software and the utility GNU enscript (http://people.ssh.fi/mtr/genscript/).

So what does it mean? Well from now you can use the default vbcode with certain keyword extensions, e.g:

[CODE=baan]
your baan code here


will display the baan code part formatted according to a number specific rules and keywords. Following CODE extensions are available for use:
ada
asm
awk
baan
bash
bc
c
changelog
cln
cpp
csh
diff
diffu
delphi
elisp
fortran
haskell
html
idl
java
javascript
ksh
m4
mail
makefile
matlab
nroff
objc
pascal
perl
postscript
python
scheme
sh
skill
sql
states
synopsis
tcl
tcsh
tex
verilog
vhdl
vba
vrml
zsh
Obviously not all these CODE extentions will be relevant for baanboard but they are listed here for reference. The 3 Baan specific CODE extensions baan, bc and cln were also developed by Vamsi.

All CODE extensions are case insensitive but the equal ('=') sign is mandatory after the CODE vbcode keyword:
e.g.:
[CODE=KsH]

The normal [CODE] is of course still available and will not cause any formatting done by enscript.

Note that in order to use the above CODE extensions you must enter them manually into your text input box when creating a post. They are not available through the CODE button.

We will be checking old posts for the occurence of the CODE keywords and apply the correct extension where appropriate.

All members who would like to post code snippets are encouraged to use the CODE extensions!

This information can also be found in the vbcode FAQ (http://www.baanboard.com/baanboard/misc.php?s=&action=bbcode).

OmeLuuk
18th July 2002, 18:26
Great option. Reads a lot better.:rolleyes:

OmeLuuk
13th March 2003, 11:55
hm, there is no option for *.bat *.cmd command files for NT?
in this post I need it (http://www.baanboard.com/baanboard/showthread.php?s=&postid=34893#post34893)

patvdv
13th March 2003, 12:19
Hi Omeluuk,

That's correct. There's no support for these extensions. Since GNU Enscript is Open Source, there might be an opportunity for NT people to make a rule file for these extensions :)