Complete List of Supported BBCode [code] Languages

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Complete List of Supported BBCode [code] Languages

Post by McInfo »

I named this topic the way I did in case someone wants to sticky it as a reference. The real reason for this post is to get some feedback on a Greasemonkey script I am making.

The script changes the "Code" button on the posting page into a menu to encourage the use of the [code=lang][/code] syntax.
SelectCodeType.png
SelectCodeType.png (2.52 KiB) Viewed 4108 times
Based on the files found in phpBB3/includes/geshi on my own server, I have determined that the following languages are supported.

Code: Select all

abap
actionscript
ada
apache
applescript
asm
asp
autoit
bash
blitzbasic
bnf
c
c_mac
caddcl
cadlisp
cfdg
cfm
cpp-qt
cpp
csharp
css
d
delphi
diff
div
dos
dot
eiffel
fortran
freebasic
genero
gml
groovy
haskell
html
html4strict
idl
ini
inno
io
java
java5
javascript
js
latex
lisp
lua
m68k
matlab
mirc
mpasm
mysql
nsis
objc
ocaml-brief
ocaml
oobas
oracle8
pascal
per
perl
php-brief
php
plsql
python
qbasic
rails
reg
robots
ruby
sas
scheme
sdlbasic
smalltalk
smarty
sql
tcl
text
thinbasic
tsql
vb
vbnet
vhdl
visualfoxpro
winbatch
xml
xpp
xsl
z80
However, to make the menu more user-friendly, I have limited the languages to the ones shown in the attached image. Do you agree with my choices and the order in which they appear?

Edit: This post was recovered from search engine cache.
Last edited by McInfo on Thu Jun 17, 2010 5:03 pm, edited 2 times in total.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Complete List of Supported BBCode [code] Languages

Post by pickle »

This would be a fantastic plugin. The only addition I would make is to add CSS. What would be the difference between [syntax=php]and[/syntax][syntax=php]?[/syntax]
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Complete List of Supported BBCode [code] Languages

Post by McInfo »

pickle wrote:The only addition I would make is to add CSS.
I'm thinking CSS should go between HTML and JavaScript. Do you agree? The order is loosely based on perceived frequency of use. Users will be able to edit the Greasemonkey script and change the order to match their preference, so it's not critical.
pickle wrote:What would be the difference between

Code: Select all

 and [code=text]?[/quote]
Functionally, they are the same because the BBCode processor will change [code] to [code=text]. However, "Code" is useful as a label for the menu and "Text" is explicit.

[i][size=72]Edit: This post was recovered from search engine cache.[/size][/i]
Last edited by McInfo on Thu Jun 17, 2010 5:05 pm, edited 1 time in total.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Complete List of Supported BBCode [code] Languages

Post by pickle »

I don't think the order matters too much. It'd be nice to have all the client-side stuff together though.

Would "Unformatted" make any more or less sense than "Text"? To me personally it would, but that's one man's opinion.

"Apache" might be used periodically as well, but I'd rename it to "HTACCESS".
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Complete List of Supported BBCode [code] Languages

Post by McInfo »

Maybe I should make a PHP application to allow users to customize the menu items before they download the Greasemonkey script.

Update: I finished the customization page.

Related post: 589805 (release announcement)

Edit: This post was recovered from search engine cache.
Post Reply