Page 1 of 1

Complete List of Supported BBCode [code] Languages

Posted: Fri Jan 22, 2010 1:10 am
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 4107 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.

Re: Complete List of Supported BBCode [code] Languages

Posted: Fri Jan 22, 2010 11:41 am
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]

Re: Complete List of Supported BBCode [code] Languages

Posted: Fri Jan 22, 2010 1:31 pm
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]

Re: Complete List of Supported BBCode [code] Languages

Posted: Fri Jan 22, 2010 4:21 pm
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".

Re: Complete List of Supported BBCode [code] Languages

Posted: Fri Jan 22, 2010 5:26 pm
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.