Regg's OffTopic
3 posters
Page 1 of 1
Regg's OffTopic
There's been some griping here about the colors used for the code () boxes. Green text on a white background can be difficult to read. So I'm asking for suggestions for a new color scheme. Post your ideas, and if we can reach a consensus, I'll update the CSS.
Regg- Veteran
- Points : 143
Reputation : 10
Join date : 2013-02-22
Re: Regg's OffTopic
Which ever colour schem is picked a contrast of a dark background with a light coloured text is what is needed I think. Dark bluebg/ white text, blackbg/ white text, etc. if it is possible to get the code written like the editor that would be even better. Highlighting the various syntax etc.
Re: Regg's OffTopic
I was looking around the forumotion.com help forum, but couldn't find anything about syntax highlighting other than 'we support it'. I'm trying to get an account on that forum so I can post a question.
Regg- Veteran
- Points : 143
Reputation : 10
Join date : 2013-02-22
Re: Regg's OffTopic
here is the thread I started on the help forum.
http://help.forumotion.com/t118162-how-can-i-change-the-colour-of-text-in-code
Here is a link that I was sent to see if this could help:
http://www.avacweb.com/t324-10-syntax-highlighting-with-panda
http://help.forumotion.com/t118162-how-can-i-change-the-colour-of-text-in-code
Here is a link that I was sent to see if this could help:
http://www.avacweb.com/t324-10-syntax-highlighting-with-panda
Re: Regg's OffTopic
Been trying to get this Panda syntax highlighter working, but it looks like Forumotion.com is actually breaking the Panda code! Forumotion.com offers this warning:
But whatever 'compression' method they are using is actually breaking the code, as Firefox logs a syntax error and aborts the script. Since the bastards locked the topic without providing any resolution, I'm trying to start a new thread, but still waiting on my account to be approved.Be careful, your javascript code must be functional when published. In effect, we compress the code in order to improve your forum pages loading time.
Regg- Veteran
- Points : 143
Reputation : 10
Join date : 2013-02-22
Re: Regg's OffTopic
FYI -- when I make my own web page and include the Panda JavaScript code, there are no syntax errors! It is quite clear that Forumotion.com's so-called compression is screwing up the code.
Regg- Veteran
- Points : 143
Reputation : 10
Join date : 2013-02-22
Re: Regg's OffTopic
I was able to figure out what was going on with the Panda script and get it resolved! We now have syntax highlighting in the code boxes! I still need to get it working properly for Lua, though.
Regg- Veteran
- Points : 143
Reputation : 10
Join date : 2013-02-22
Re: Regg's OffTopic
thats looking great dude! just a prompt about the bg colour though, if you can change that and the colour of the text to suit I think you're on to a winner there.
Your help is greatly appreciated.
Cheers
MD
Your help is greatly appreciated.
Cheers
MD
Re: Regg's OffTopic
Those colors looking any better mate?
I'm slowly adding the Lua keywords and functions.
I'm slowly adding the Lua keywords and functions.
Regg- Veteran
- Points : 143
Reputation : 10
Join date : 2013-02-22
Re: Regg's OffTopic
- Code:
function testcode()
OFP:move("unit","waypointp","ADDTOFRONT")
OFP:defend("unit","bunker",50,"ADDTOEND")
MDG:kickSomeAss("unit","pla","allgunsblazing","fragthefuckers","OVERRIDE")
end
function onHit()
if unit == myunit then
MDG:yourfucked("unit","Dead")
end
end
Re: Regg's OffTopic
looking at my test code above, I'm not sure what it looks like on other colour varients in peoples editors, but I have white and blue the other way around, all the variables are in white too and red for the strings in the parenthesis.
Liking the background colour and the line numbering too.
funny isn't it, how we seem to be the only ones discussing this matter when other people were complaining about it. Thought this was an open forum??
Liking the background colour and the line numbering too.
funny isn't it, how we seem to be the only ones discussing this matter when other people were complaining about it. Thought this was an open forum??

Re: Regg's OffTopic
looking great - I tried playing with PANDA as well but became a bit frustrated with the recursive discussions of the threads - now I know it has something to do with the way forummotion handles its BBS code.
Either case it is looking good and like others, appreciate seeing these different skill sets being shared!
Either case it is looking good and like others, appreciate seeing these different skill sets being shared!
John J. Stevens- Admin
- Location : WV/PA
Points : 285
Reputation : 22
Join date : 2012-12-19
Re: Regg's OffTopic
Thanks for the kind words. I'm glad I found an interesting place to share my skills!
Forumotion's Javascript 'optimizer' strips out all comments and attempts to remove white-space in scripts in order to cut down the total file size. But it was removing a space where it was needed. Adding a back-slash before the space fixed it!
There is still an issue with the Panda script not recognizing comments in posted code, and I'm not sure if I'll be able to get that one worked out. Its not just comments in Lua, but even the built-in defaults. Anyone here familiar with Regular Expressions and/or Javascript?
Forumotion's Javascript 'optimizer' strips out all comments and attempts to remove white-space in scripts in order to cut down the total file size. But it was removing a space where it was needed. Adding a back-slash before the space fixed it!
There is still an issue with the Panda script not recognizing comments in posted code, and I'm not sure if I'll be able to get that one worked out. Its not just comments in Lua, but even the built-in defaults. Anyone here familiar with Regular Expressions and/or Javascript?
Regg- Veteran
- Points : 143
Reputation : 10
Join date : 2013-02-22
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|