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.
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 (2.52 KiB) Viewed 4109 times
Based on the files found in phpBB3/includes/geshi on my own server, I have determined that the following languages are supported.
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.
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.
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.
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.