Not logged in. · Lost password · Register
Forum: Support Ideas and suggestions RSS
Support for extra languages
Reply
Reply · Quote Synfire (Guest) #1
No profile available.
Link to this post
Subject: Support for extra languages
I'm not a user of Un[classified] Newsboard, my site isn't really popular enough to warrant a message board. But my friends site does. I'm also a moderator on a few SMF forums. I've notice that no messageboard has support for Assembly Language in the 'code' tags. Do you think this would ever be a consideration for Un[classified] Newsboard? As far as which assembler to support, that really shouldn't matter, just skip assembler specific directives and support hilighting of opcodes, types (byte, word, dword, qword, tenbyte and the associative db, dw, dd, dq, and dt), and string declarations. That way any assembler code would be very nicely formatted. Just a suggestion as one of the thousands of avid assembly programmers who generally get left out of the "syntatical hilighting support".

Regards,
Bryant Keller
Avatar
Reply · Quote Yves (Administrator) #2
User title: UNB developer & webmaster
Member since Jan 2004 · 3705 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Aah, you're talking about syntax highlichting for the Assembler language inside [code] tags. It took me quite a while to figure that out from your post... ;) The syntax highlighter in use is GeSHi and there's a whole lot of syntax definitions for it. I'd just need to get the appropriate file and add "asm" to the PHP code that assigns syntax files to [code] tag parameters. You could even do that for yourself with a little PHP experience. The relevant code can be found in the file abbc.lib.php, there's already a lot of other language names in there. I'll put it on my TODO list.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Reply · Quote Synfire (Guest) #3
No profile available.
Link to this post
Thanks alot, sorry if I was unclear. I'll definately look into GeSHi. Having my buddy add support shouldn't be a problem, he's very well versed in PHP. I'll make sure I tell him to lookup the GeSHi file for assembly so when myself, and a few others, post code it'll look decent :) Thanks again mate.

Regards,
Bryant Keller
Avatar
Reply · Quote Yves (Administrator) #4
User title: UNB developer & webmaster
Member since Jan 2004 · 3705 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Here's a helpful overview where to put the files, with a link to GeSHi.
http://newsboard.unclassified.de/devel/docs/files
And I knew there was something about adding languages... Now I see, it's not written yet...
http://newsboard.unclassified.de/devel/docs/mods
This is where syntax highlighting is done:
http://newsboard.unclassified.de/coderef/function_abbcsynt…
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Avatar
Reply · Quote Yves (Administrator) #5
User title: UNB developer & webmaster
Member since Jan 2004 · 3705 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Removed it again from my TODO list. There's several dialects of Assembler, I think it's best for those who need it to add it theirselves. The GeSHi website is http://qbnz.com/highlighter/.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Reply
Go to forum
This board is powered by the Unclassified NewsBoard software, 20090606-dev, © 2003-8 by Yves Goergen
Page created in 152 ms (112 ms) · 55 database queries in 88 ms
Current time: 2010-03-10, 07:15:50 (UTC +02:00)