This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
zekesonxx's profile picture

Code highlighting

Started by zekesonxx, 18 January 2013 - 03:49 AM
zekesonxx #1
Posted 18 January 2013 - 04:49 AM
What is the default code highlighter set to and why isn't it Lua?


while true do
  --Look ma, no comment!
  #Nevermind, I have a comment now.
  function candy()
	print("false")
  end
end

It seems to be a language similar to Lua, but not Lua.
Cranium #2
Posted 18 January 2013 - 06:18 AM
As far as I know, IP.Board uses Prettify syntax highlighting. If the server admins want to change that, it says we can change it by downloading different language packs from that link, and putting them here:
public\js\3rd_party\prettify\
zekesonxx #3
Posted 18 January 2013 - 06:43 AM
Found it.

http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-lua.js?r=193

That seems to have correct Lua support from what I read of the code.
Greenwolf25 #4
Posted 03 February 2013 - 02:12 PM
I hate to be rude but I can't post a new topic and I need to find out why can anyone help me?
Cranium #5
Posted 03 February 2013 - 02:28 PM
I hate to be rude but I can't post a new topic and I need to find out why can anyone help me?
Please read the forum guidelines completely. If you have to ask a question, then create a new post in the sticky here: http://www.computercraft.info/forums2/index.php?/topic/9919-new-members-needing-to-ask-questions-please-read/
Greenwolf25 #6
Posted 03 February 2013 - 02:49 PM
I hate to be rude but I can't post a new topic and I need to find out why can anyone help me?
Please read the forum guidelines completely. If you have to ask a question, then create a new post in the sticky here: http://www.computerc...ns-please-read/
ok thanks I couldn't find that
theoriginalbit #7
Posted 03 February 2013 - 04:15 PM
Back to topic here since the bumping just reminded me. Is it possible to get the code highlighting fixed with the Lua js file?
zekesonxx #8
Posted 05 February 2013 - 07:39 AM

    #I really hope so, otherwise we're going to still have C comments.
Cranium #9
Posted 05 February 2013 - 07:49 AM
Yeah, I'll send a message to Cloudy incase he doesn't see this thread. And see if it would be possible to make this happen.
Bubba #10
Posted 26 February 2013 - 01:50 AM
Sorry if I seem a bit impatient but have the admins made a decision about this? It sounds like it would be a pretty simple fix, but then again I'm no forum manager.
Mads #11
Posted 26 February 2013 - 08:14 AM
I don't really see the problem in this, to be honest.
Cranium #12
Posted 26 February 2013 - 08:41 AM
I have talked to Cloudy about this a long time ago, and he does express an interest in changing forum software, but my guess is that it will happen when it happens. Until then, enjoy the useless highlighting.
zekesonxx #13
Posted 27 February 2013 - 11:49 AM
[Don't be a pest. -L]
Edited by
AfterLifeLochie #14
Posted 09 March 2013 - 11:40 AM
TL,DR, we can't really change IP.Board.
You will just have to live with the retarded highlighting.
theoriginalbit #15
Posted 09 March 2013 - 03:03 PM
TL,DR, we can't really change IP.Board.
You will just have to live with the retarded highlighting.
Not trying to push, just a reply… You actually can change it, its using the Prettify syntax highlighter not IP.Board to highlight. If you didn't know Prettify just uses separate javascript files for languages, so I'd assume (based on my previous experiences) that all should be needed to change is delete the C highlighter and put the Lua highlighter in its place.
AfterLifeLochie #16
Posted 09 March 2013 - 04:02 PM
TL,DR, we can't really change IP.Board.
You will just have to live with the retarded highlighting.
Not trying to push, just a reply… You actually can change it, its using the Prettify syntax highlighter not IP.Board to highlight. If you didn't know Prettify just uses separate javascript files for languages, so I'd assume (based on my previous experiences) that all should be needed to change is delete the C highlighter and put the Lua highlighter in its place.

I cannot change it. Only Cloudy and Dan can - as they are the only FTP users, and we're still considering new forum software anyway.

It still stands. TL,DR we can't change it.

Topic closed.