It is currently Wed Aug 23, 2017 12:27 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Syntax highlighting test
PostPosted: Fri Apr 11, 2014 6:42 am 
Offline
User avatar

Joined: Mon Jan 03, 2005 10:36 am
Posts: 2925
Location: Tampere, Finland
Code:
Testing SyntaxHighlighter:
lda #<foo
lda #<123
lda #>bar;test
lda #>444 ; testing
foo = 1 & 5
    indentation

_________________
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: kkfos.aspekt.fi


Last edited by thefox on Sat Apr 12, 2014 9:55 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Fri Apr 11, 2014 9:03 am 
Offline
NESICIDE developer
User avatar

Joined: Mon Oct 13, 2008 7:55 pm
Posts: 1026
Location: Minneapolis, MN
...fail? :D :beer:


Top
 Profile  
 
PostPosted: Fri Apr 11, 2014 11:19 am 
Offline
User avatar

Joined: Mon Jan 03, 2005 10:36 am
Posts: 2925
Location: Tampere, Finland
Nope, it's client only. Works only with a specific Chrome extension I made. :)

_________________
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: kkfos.aspekt.fi


Top
 Profile  
 
PostPosted: Fri Apr 11, 2014 11:25 am 
Offline
NESICIDE developer
User avatar

Joined: Mon Oct 13, 2008 7:55 pm
Posts: 1026
Location: Minneapolis, MN
thefox wrote:
Nope, it's client only. Works only with a specific Chrome extension I made. :)

Ah.


Top
 Profile  
 
PostPosted: Fri Apr 11, 2014 3:18 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 18836
Location: NE Indiana, USA (NTSC)
Let met guess: Once you get the Chrome extension working, you plan to port it to a client JS that the server can include in every page with a <script src="...">. Or do you plan to keep it Chrome-exclusive?


Top
 Profile  
 
PostPosted: Fri Apr 11, 2014 4:19 pm 
Offline
User avatar

Joined: Mon Jan 03, 2005 10:36 am
Posts: 2925
Location: Tampere, Finland
tepples wrote:
Let met guess: Once you get the Chrome extension working, you plan to port it to a client JS that the server can include in every page with a <script src="...">. Or do you plan to keep it Chrome-exclusive?

Wasn't exactly my plan. First of all, the Chrome extension already works. I was just using this page to test the bug fixes I made for the Wiki syntax highlighter (since this was the easiest way because I was already using the same script in my Chrome extension).

The script could be used on this forum as well, it's not dependent on Chrome in any way, but it probably wouldn't be a good idea to highlight all [code] tags, since often they're used for things other than just 6502 code. We could add a new [6502] tag or something, I guess?

_________________
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: kkfos.aspekt.fi


Top
 Profile  
 
PostPosted: Fri Apr 11, 2014 6:55 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 18836
Location: NE Indiana, USA (NTSC)
Apparently there's some sort of latent support for syntax highlighting within phpBB. It is documented as treating [code=php] differently, but it strips out a lot of arguments from other [code=...] tags. That sort of disappoints me because I expected to be able to edit the [code] tag as a custom BBCode to pass the language name through as a data- attribute that a script can pick up on.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group