Syntax highlighting test

Trying out new BBCode features? Use this forum!
Posts in this forum are subject to deletion without prior notice.

Moderator: Moderators

Post Reply
User avatar
thefox
Posts: 3141
Joined: Mon Jan 03, 2005 10:36 am
Location: Tampere, Finland
Contact:

Syntax highlighting test

Post by thefox » Fri Apr 11, 2014 6:42 am

Code: Select all

Testing SyntaxHighlighter:
lda #<foo
lda #<123
lda #>bar;test
lda #>444 ; testing
foo = 1 & 5
    indentation
Last edited by thefox on Sat Apr 12, 2014 9:55 am, edited 1 time in total.
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi

User avatar
cpow
NESICIDE developer
Posts: 1097
Joined: Mon Oct 13, 2008 7:55 pm
Location: Minneapolis, MN
Contact:

Re: Syntax highlighting test

Post by cpow » Fri Apr 11, 2014 9:03 am

...fail? :D :beer:

User avatar
thefox
Posts: 3141
Joined: Mon Jan 03, 2005 10:36 am
Location: Tampere, Finland
Contact:

Re: Syntax highlighting test

Post by thefox » Fri Apr 11, 2014 11:19 am

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: fo.aspekt.fi

User avatar
cpow
NESICIDE developer
Posts: 1097
Joined: Mon Oct 13, 2008 7:55 pm
Location: Minneapolis, MN
Contact:

Re: Syntax highlighting test

Post by cpow » Fri Apr 11, 2014 11:25 am

thefox wrote:Nope, it's client only. Works only with a specific Chrome extension I made. :)
Ah.

tepples
Posts: 21973
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Syntax highlighting test

Post by tepples » Fri Apr 11, 2014 3:18 pm

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?

User avatar
thefox
Posts: 3141
Joined: Mon Jan 03, 2005 10:36 am
Location: Tampere, Finland
Contact:

Re: Syntax highlighting test

Post by thefox » Fri Apr 11, 2014 4:19 pm

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: Select all

 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: fo.aspekt.fi

tepples
Posts: 21973
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Syntax highlighting test

Post by tepples » Fri Apr 11, 2014 6:55 pm

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.

Post Reply