Author Topic: BBify: syntax-color your Z80, TI-BASIC, Axe, and Lua  (Read 38592 times)

0 Members and 1 Guest are viewing this topic.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: BBify your Z80, TI-BASIC, Axe, and Lua
« Reply #60 on: November 08, 2011, 03:48:07 pm »
Quote from: Darl181
Might it be possible to disable the coloring?  It gets pretty hard if you want to modify your code later when every token has its own color tag
Yeah, I added a "Plain text" option for highlighting, but remember you can always copy-paste your code back into BBify (not the BBCode, but what shows up on the forum).
Quote from: Darl181
Also, for some reason some chars (esp. zeroes) don't display/get parsed properly or something, firefox shows a diamond with a ?
I thought I'd fixed that. Do you have the code you used?




Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: BBify your Z80, TI-BASIC, Axe, and Lua
« Reply #61 on: November 09, 2011, 11:18:23 am »
The code attached in this post.
It seemed to center on the sprite declarations in particular, if that helps.
Vy'o'us pleorsdti thl'e gjaemue

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: BBify your Z80, TI-BASIC, Axe, and Lua
« Reply #62 on: November 09, 2011, 06:35:01 pm »
Fixed. All zeros were being parsed as null bytes :P
« Last Edit: November 09, 2011, 06:35:23 pm by Deep Thought »




Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: BBify your Z80, TI-BASIC, Axe, and Lua
« Reply #63 on: November 12, 2011, 11:14:15 am »
...and now it's putting slashes between every token again x.x
Vy'o'us pleorsdti thl'e gjaemue

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: BBify your Z80, TI-BASIC, Axe, and Lua
« Reply #64 on: November 12, 2011, 11:48:14 am »
It doesn't for me ??? Only in the input box after detokenizing, and that's to prevent it from reading a minus sign followed by a greater-than sign as → and so on. \ separates ambiguous characters in TokenIDE.




Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: BBify your Z80, TI-BASIC, Axe, and Lua
« Reply #65 on: November 12, 2011, 05:37:35 pm »
Nvm, it was set as "Plain Text" :P
Vy'o'us pleorsdti thl'e gjaemue

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: BBify your Z80, TI-BASIC, Axe, and Lua
« Reply #66 on: November 12, 2011, 07:26:45 pm »
Should I remove the slashes even for plain text?




Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
BBify: detokenize and highlight your Z80, TI-BASIC, Axe, and Lua
« Reply #67 on: January 01, 2012, 03:00:47 pm »
UPDATE: I had this idea months ago, but I finally sat down and made it today. The BBify'r now has a "BBify Builder" function, where you type some stuff and watch it generate a language rules sheet for you. So you can now use it to highlight the syntax of any language without needing to know regular expressions. Just type what it asks you to type and it builds everything for you.

When you're done, you can choose to download the XML file (and upload it as a custom rules sheet to use) or save it online—it'll be there as an option the next time you need it!

« Last Edit: January 01, 2012, 03:07:08 pm by Deep Thought »




Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: BBify your Z80, TI-BASIC, Axe, and Lua
« Reply #68 on: January 01, 2012, 03:12:18 pm »
Should I remove the slashes even for plain text?
I'm not sure, but maybe make the options more prominent?  Maybe not fill one in by default or something, and require that one is checked.

Also awesome :D
« Last Edit: January 01, 2012, 03:12:29 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: BBify your Z80, TI-BASIC, Axe, and Lua
« Reply #69 on: January 01, 2012, 03:13:42 pm »
Should I remove the slashes even for plain text?
I'm not sure, but maybe make the options more prominent?  Maybe not fill one in by default or something, and require that one is checked.
I actually got rid of the Plain Text option :/ If you need your code without highlighting, just post it in a forum (you can use Preview) and copy-paste the result.




Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: BBify: syntax-color your Z80, TI-BASIC, Axe, and Lua
« Reply #70 on: March 30, 2013, 06:07:03 pm »
Major necro-update

The BBify'r now generates code coloring in HTML as well as BBCode!

That means two things:
  • Instant previews of what your colored code will look like. You can even copy-paste the text directly from the preview into, say, an email or HTML editor.
  • HTML code for your syntax-colored code. Use this box if you need to paste it directly into a webpage.

As always: http://clrhome.org/bbify/

I might change the URL and the name of the project someday, since it's not just for BBCode conversion anymore.
« Last Edit: April 17, 2013, 07:56:27 pm by Deep Thought »




Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: BBify: syntax-color your Z80, TI-BASIC, Axe, and Lua
« Reply #71 on: July 11, 2013, 06:57:39 am »
I was reminded of this topic by this topic: http://ourl.ca/119725
And bbify literally went offline 5 minutes after I started using it.
And now it's back online.
EDIT: It didn't seem to work for uploading code files, it would submit/reload the page but do nothing else.
« Last Edit: July 11, 2013, 07:00:25 am by Jonius7 »
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: BBify: syntax-color your Z80, TI-BASIC, Axe, and Lua
« Reply #72 on: July 11, 2013, 11:12:26 am »
Ui, nice, this is useful!
We should have a modified [code] tag though to also highlight for like basic or axe :P
« Last Edit: July 11, 2013, 11:13:46 am by Sorunome »

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: BBify: syntax-color your Z80, TI-BASIC, Axe, and Lua
« Reply #73 on: July 11, 2013, 01:32:35 pm »
I was reminded of this topic by this topic: http://ourl.ca/119725
And bbify literally went offline 5 minutes after I started using it.
And now it's back online.
I'm on a free server that seems to have gotten worse over time. Looking for a new host soon.
EDIT: It didn't seem to work for uploading code files, it would submit/reload the page but do nothing else.
Works for me.

There are two file upload buttons, one for the (optional) stylesheet and one for the actual code. Are you sure you uploaded it in the right place?

I think I'll reverse the order of steps on the page. Seems to make more sense to put code in first, and then customize colors and stuff.
« Last Edit: July 11, 2013, 01:32:58 pm by Deep Thought »




Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: BBify: syntax-color your Z80, TI-BASIC, Axe, and Lua
« Reply #74 on: July 12, 2013, 03:29:56 am »
Yeah step 3, under give me your code, with the code box on the left and the upload file/url link on the right.
The code box works, the file upload doesn't.

EDIT: oh wait a minute it wasn't working before, now it's uploading... but it didn't seem to work. What kind of TI-nspire/Lua files can it
accept?

EDIT: it works for Axe 8xp :)

« Last Edit: July 12, 2013, 03:32:32 am by Jonius7 »
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)