GS1 syntax highlight for our board

I’m actually working on a plugin that will highlight gs1 syntax,
here are the list of commands and their respective colors:

I’m unsure of them so I’m waiting for comments…

[COLOR="#0000FF"]Blue
If
Else
For
While
With
function

join

Bold
set
unset
[/COLOR]

[COLOR="#8B4513"]Brown
Downloadpos
Downloadsize
Graalversion
Gravity
Levelorgx
Levelorgy
Mousebuttons
Mousescreenx
Mousescreeny
Mousewheeldelta
Mousex
Mousey
Musicpos
Musiclen
Playerfreezetime
Screenheight
Screenwidth
Selectedweapon
Timevar
Waterheight

weaponscount
Tokenscount
npcscount
playerscount
compuscount
bombscount
arrowscount
itemscount
exploscount
horsescount
signscount
allplayerscount

playerhurtdpower
playerhurtdx
playerhurtdy[/COLOR]

[COLOR="#008000"]Green
Sleep
Setimg
Setimgpart
Addguildmember
Removeguildmember
Removeguild
Move
Say
Say2
Lay
Lay2
Take
Take2
Message
Setcharprop
Setcharani
Setchargender
Putnpc
Putnpc2
Callnpc
Callweapon
Carryobject
Copystrings
Copyflags
Toinventory
Toweapons
Addweapon
Removeweapon
Seteffect
Seteffectmode
Setcoloreffect
Setzoomeffect
Showani
Showani2
Showimg
Showimg2
Showpoly
Showpoly2
Showtext
Showtext2
Hideimg
Hideimgs
Changeimgpart
Changeimgvis
Changeimgcolors
Changeimgzoom
Changeimgmode
Sendtorc
Sendtonc
Sendpm
Setpm
Sendrpgmessage
Setshape
Setshape2
Setshootparams
Shoot
Shootarrow
Shootfireball
Shootfireblast
Shootnuke
Spyfire
Hitnpc
Takehorse
Warpto
Wraptext
Wraptext2
Attachplayertoobj
Serverwarp
Setlevel
Setlevel2
Seturllevel
Setbody
Sethead
Setsword
Setshield
Setani
Setplayerdir
Setgender
Setskincolor
Setcoatcolor
Setsleevecolor
Setshoecolor
Setbeltcolor
Setplayerprop
freezeplayer
hideplayer
hidesword
hurt
hitplayer
replaceani
hitobjects
triggeraction
updateboard
updateboard2
setz
putobject
putbomb
putexplosion
putleaps
puthorse
setbackpal
setletters
setmap
setminimap
loadmap
showstats
removebomb
removearrow
removeitem
removeexplor
removehorse
explodebomb
reflectarrow
addtiledef
addtiledef2
removetiledefs
enablefeatures
setcursor
setcursor2
putcomp
putnewcomp
hitcompu
copylevel
deletelevel
play
play2
playlooped
stopsound
setmusicvolume
openurl
openurl2
showfile
saveinfo
savelog
savelog2

textheight
textwidth

Tokenize
Tokenize2

Bold
timereverywhere
Hide
Show
Dontblock
Drawoverplayer
Drawunderplayer
Drawaslight
Blockagain
Canbecarried
Cannotbecarried
Canbepushed
Cannotbepushed
Canbepulled
Cannotbepulled
Cannotwarp
Canwarp
Canwarp2
Noplayeronwall
Timershow
Showcharacter
Throwcarry
Followplayer
Hidelocal
Showlocal
Dontblocklocal
Blockagainlocal
Destroy
Shootball
Detachplayer
Takeplayercarry
Takeplayerhorse
Disableweapons
Enableweapons
Freezeplayer2
Disabledefmovement
Enabledefmovement
Disablepause
Enablepause
Disablemap
Enablemap
Updateterrain
Noplayerkilling
Disableselectweapons
Enableselectweapons
Removecompus
stopmidi
[/COLOR]

[COLOR="#FF8C00"]Orange
Onmapx
Onmapy
Onwall
Onwall2
Onwater

Startswith
Strcontains
strequals

allplayers[.]
players[.
]
players[.].x
players[.
].y
players[.].z
players[.
].rupess
players[.].bombs
players[.
].darts
players[.].mp
players[.
].ap
players[.].heart
players[.
].fullhearts
players[.].dir
players[.
].glovepower
players[.].swordpower
players[.
].shieldpower
players[.].headset
players[.
].sprite
players[.].anistep
players[.
].id
players[.].saysnumber
players[.
].id
players[.].attachid
players[.
].attachtype
players[.].logintime
players[.
].lastdead
compus[.].x
compus[.
].y
compus[.].type
compus[.
].dir
compus[.].headdir
compus[.
].power
compus[.].mode
bombs[.
].x
bombs[.].y
bombs[.
].power
bombs[.].time
arrows[.
].x
arrows[.].y
arrows[.
].dx
arrows[.].dy
arrows[.
].dir
arrows[.].type
arrows[.
].from
items[.].x
items[.
].y
items[.].type
items[.
].time
explos[.].x
explos[.
].y
explos[.].power
explos[.
].time
explos[.].dir
horses[.
].x
horses[.].y
horses[.
].dir
horses[.].bushes
horses[.
].bombs
horses[.].bombpower
horses[.
].type
signs[.].x
signs[.
].y

Bold
[B]Actiondoublemouse
Actionleftmouse
Actionmiddlemouse
Actionrightmouse
Actionprojectile
Actionsprojectile
Actionprojectile2
Actionpushed
Actionpulled
Canspin
Carrying
Carriesblackstone
Carriesbush
Carriesstone
Carriesvase
Compsdead
Compusdied
Exploded
Firedonhorse
Followsplayer
Hasweapon
Isfocused
Isleader
Isonmap
Issparringzone
Isweapon
Keydown
Keydown2
Keypressed
Leftmousebutton
Lighteffectsenabled
Middlemousebutton
Mousedown
Mouseup
Mousewheel
Nopkzone
Pm
Playeronline
Peltwithblackstone
Peltwithbush
Peltwithnpc
Peltwithsign
Peltwithstone
Peltwithvase
Playerchats
Playerdies
Playerendsreading
Playerenters
Playerleaves
Playerhurt
Playerisfemale
Playerismale
Playerlaysitem
Playermap
Playeronhorse
Playerpause
Playerreading
Playerswimming
Playertouchsme
Playertouchsother
Playerattached
Playertrial
Rightmousebutton
Shotbybaddy
shotbyplayer
(timeout)
visible
washit
waspelt
wasshot
wasthrown
weaponfired
weaponsenabled

actionplayer[/B][/COLOR]

[COLOR="#FF0000"]Red
Break
Continue
return
timeout

Bold
Client
Clientr
Server
Server
This
Thiso
Local
[/COLOR]

Gray (pale)
Comments, /**/,//

Gray
Rupees
Bombs
Darts
Hearts
Glovepower
Swordpower
Shieldpower
Dir
Sprite
Anistep
Ap
Hurtdx
Hurtdy
Save[0]
Save[1]
Save[2]
Save[3]
Save[4]
Save[5]
Save[6]
Save[7]
Save[8]
Save[9]

Black

Bold
Testbomb
Testcompu
Testexplo
Testhorse
Testitem
Testnpc
Testplayer
Testsign
Tiles
tiletype

[COLOR="#800080"]Purple
Setarray
Setstring
Addstring
Insertstring
Replacestring
Removestring
deletestring

#a
#b
#C0
#C1
#C2
#C3
#C4
#c
#D
#e
#f
#g
#G
#I
#i
#K
#k
#L
#m
#n
#N
#P1
#P2
#P3
#P4
#P5
#P6
#P7
#P8
#P9
#P10

#P11
#P12
#P13

#P14
#P15
#P16
#P17
#P18

#P19
#P20

#P21
#P22
#P23

#P24

#P25
#P26

#P27

#P28

#P29
#P30
#p
#Q
#R
#s
#t
#T
#v
#W
#w
#1
#2
#3
#4
#5
#6
#8

Bold
Abs
Aindexof
Arctan
Arraylen
Ascii
Board
Cos
Getangle
Getdir
Getz
Getplayer
Getnearestplayer
Getnearestplayers
Getareanpcs
Getnpc
Imgwidth
Imgheight
Indexof
Int
keycode
lindexof
log
max
min
random
sarraylen
screenx
screeny
sin
strlen
strtofloat
vecx
vecy
worldx
worldy
[/COLOR][COLOR=“Silver”]

---------- Post added at 06:53 AM ---------- Previous post was at 05:32 AM ----------

[/COLOR][GS1]
fdasgfds
FDSAFSDA
[/GS1]

My favorite is #P29

[php]
//flushCount = (poopCount>=5)?2:1;
if (poopCount >= 5) {
flushCount = 2;
} else {
flushCount = 1;
}
[/php]

[noparse]
[php]
//flushCount = (poopCount>=5)?2:1;
if (poopCount >= 5) {
flushCount = 2;
} else {
flushCount = 1;
}
[/php]
[/noparse]

Good enough for me.

yeah is this for the forums, or are you creating some sort of gs1 IDE?

He wants us to make it for the forums.

[QUOTE=Spooon;100692]
[php]
//flushCount = (poopCount>=5)?2:1;
if (poopCount >= 5) {
flushCount = 2;
} else {
flushCount = 1;
}
[/php]

[noparse]
[php]
//flushCount = (poopCount>=5)?2:1;
if (poopCount >= 5) {
flushCount = 2;
} else {
flushCount = 1;
}
[/php]
[/noparse]

Good enough for me.
[/QUOTE]

Yeah but it fucks up when you use #v or ’ "

This is for the forums, I’m yet to have enough C knowledge to create an IDE…

and no I don’t want you to make it for the forums. I just want to make sure everyone’s ok with the colors before coding it.

I can read code without it being colored all fancy. Maybe you should learn.

I think it’s a nice gesture to try and improve the forums. Although, I can’t really weigh in on the discussion as far as adequacy goes.

[QUOTE=Spooon;100702]I can read code without it being colored all fancy. Maybe you should learn.[/QUOTE]

Mister grumpy doesn’t like colors?

[COLOR=“#696969”]Besides, I’m having fun doing this, this is my chance of using my regex skills as much as to improve my php skills… which are very dusty.

And most of my projects I coded in notepad and graal thankyouverymuch.[/COLOR]

i was always down with the notepad or nano.

Notepad ftw! Also the color scheme is agreeable.

I say if he wants to do the work himself, let him do it. Why complain about it? It may help some people to read it, and it could probably be added as optional so that Spooon can turn it off.
I don’t care if there are colors or not, but I support the idea.

2ndwolf, one project at a time dude.

That wasn’t too long, I finished this afternoon.
It was more like vacation from scripting that damned world generator… I’m probably going to need to give a preview of it and ask the user to validate it.

Then I resume learning C++, then I resume learning my advanced maths :stuck_out_tongue:

How advanced are these advanced maths?

not that advanced… it’s high school’s most advanced maths.
I didn’t get to do 'em because I needed to have a superior average than my class but I was in a program with strong students. So when I left the program they were like “your average is not amongst the highest of your class”
Which was stupid.

Now I bought the books and getting through them, might go more advanced later but I might not either… depends on how helpful it’s going to be with programmation.

I found high-school “advanced” math kinda useful with what I do, especially calculus and vectors.

[GS1]if (playerenters) {
setstring lol,lol;
}[/GS1][COLOR=“Silver”]

---------- Post added at 05:25 PM ---------- Previous post was at 05:05 PM ----------

[/COLOR]Didn’t work. Did you base the plugin on a vb3 or vb4 plugin?

If the hooks existed and nothing broke I’m pretty sure I used the right version, have you added GS1 to your custom tags? That might be it.

[QUOTE=2ndwolf;100742]If the hooks existed and nothing broke I’m pretty sure I used the right version, have you added GS1 to your custom tags? That might be it.[/QUOTE]

I can’t add it because it’s already added with your hooks.

Is there an allowedbbcodes option list where you could add GS1?