Author Topic: Syntax-highlighting TI-BASIC editor  (Read 7973 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
Syntax-highlighting TI-BASIC editor
« on: May 25, 2012, 05:56:22 pm »
Yeah, I know we have a lot of computer-based TI-BASIC editors already, but in my defense, I had an assignment to make something in C# and I decided to make an editor with a themable, extensible, and more efficient syntax highlighting.

It currently doesn't do any converting to or from 8XPs yet (so the Open and Save buttons don't actually work), but it does have a complete highlighting engine that I can easily add more themes (color schemes) and modes (language syntaxes) to. The TI-BASIC rulesheet is also automatically updated when the editor starts up (it's that UTR thing I'd been working on), so it always keeps up-to-date in case there are new additions or bugfixes.
« Last Edit: June 05, 2012, 08:23:01 pm by Deep Thought »




Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: Syntax-highlighting TI-BASIC editor
« Reply #1 on: May 25, 2012, 06:00:52 pm »
Cool

If the conversion systems work, could you pm me the code? It would be handy if i could convert 8xp files to text files on my ipod, i know there would still be some things to adjust but it could be nice
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

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: Syntax-highlighting TI-BASIC editor
« Reply #2 on: May 25, 2012, 06:10:53 pm »
Nice! You could make that it detects if it is a Axe program/Grammer program and change the highlighter. :)

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

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: Syntax-highlighting TI-BASIC editor
« Reply #3 on: May 25, 2012, 06:13:30 pm »
Yeah that would be nice, then you don't need 3 different convertors
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

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: Syntax-highlighting TI-BASIC editor
« Reply #4 on: May 25, 2012, 06:15:18 pm »
Maybe a option to turn auto-detect on. When tokenizing be also sure that Axe and grammer have token hooks :)

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

Offline piexil

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +2/-0
  • Guys, we have a weenie hut jr. over here
    • View Profile
Re: Syntax-highlighting TI-BASIC editor
« Reply #5 on: May 26, 2012, 12:22:36 am »
Holy sheet, looks amazing dude.

I always hated how none of the IDEs had syntax highlighting
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/d9b48a7b7395142b.png" alt="NerdTests.com says I'm a Highly Dorky Nerd King.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>

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: Syntax-highlighting TI-BASIC editor
« Reply #6 on: May 26, 2012, 12:25:07 am »
Thanks :D

And what I'm personally proud of is that it only updates the text that actually got changed, so the editor won't slow down at all no matter how long your program is.




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: Syntax-highlighting TI-BASIC editor
« Reply #7 on: May 26, 2012, 04:49:23 am »
That's good. But loading times could take a while >:D
BTW, could you make then files that are to large to fit into the RAM of that calc? xD

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: Syntax-highlighting TI-BASIC editor
« Reply #8 on: May 26, 2012, 01:25:38 pm »
That's good. But loading times could take a while >:D
About two seconds for a 20 KB program, which is about as large as possible in practical terms. (That's nothing compared to, say, gedit :P)
BTW, could you make then files that are to large to fit into the RAM of that calc? xD
Of course—you can do that with any editor. Theoretically the largest program that can fit in an 8XP file is 65,518 bytes long
« Last Edit: May 26, 2012, 01:26:17 pm by Deep Thought »




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: Syntax-highlighting TI-BASIC editor
« Reply #9 on: May 26, 2012, 01:27:48 pm »
O.o two seconds! That's pretty fast! Cool!
Be sure that it'll be linux compatible :P

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: Syntax-highlighting TI-BASIC editor
« Reply #10 on: May 26, 2012, 01:37:53 pm »
Oh wait, I got two seconds after disabling the highlighter :P

It's actually more like five minutes ... so yeah, it is slow. Whoops.




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: Syntax-highlighting TI-BASIC editor
« Reply #11 on: May 26, 2012, 01:39:11 pm »
D: You need optimization :P
And don't, please don't forget to make it linux compatible :D

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

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: Syntax-highlighting TI-BASIC editor
« Reply #12 on: May 26, 2012, 02:14:29 pm »
@ Deep Thought: do you have the nescessary skills to make this (not nescecerally (spelled weong) with the highlighter but it can be if you want) for ipod touch? (has to be cydia) i'll pay the costs, and should it then be possible to have a compiler and decompiler for the .8xp files?
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline ben_g

  • Hey cool I can set a custom title now :)
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +125/-4
  • Asm noob
    • View Profile
    • Our programmer's team: GameCommandoSquad
Re: Syntax-highlighting TI-BASIC editor
« Reply #13 on: May 26, 2012, 02:16:20 pm »
Oh wait, I got two seconds after disabling the highlighter :P

It's actually more like five minutes ... so yeah, it is slow. Whoops.
You can always only highlight the visible lines, then make the editor usable while the rest of the lines are highlighted in a separate process. When the user scrolls, then continue to highlight from the new position, if that hasn't been highlighted yet.
My projects
 - The Lost Survivors (Unreal Engine) ACTIVE [GameCommandoSquad main project]
 - Oxo, with single-calc multiplayer and AI (axe) RELEASED (screenshot) (topic)
 - An android version of oxo (java)  ACTIVE
 - A 3D collision detection library (axe) RELEASED! (topic)(screenshot)(more recent screenshot)(screenshot of it being used in a tilemapper)
Spoiler For inactive:
- A first person shooter with a polygon-based 3d engine. (z80, will probably be recoded in axe using GLib) ON HOLD (screenshot)
 - A java MORPG. (pc) DEEP COMA(read more)(screenshot)
 - a minecraft game in axe DEAD (source code available)
 - a 3D racing game (axe) ON HOLD (outdated screenshot of asm version)

This signature was last updated on 20/04/2015 and may be outdated

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: Syntax-highlighting TI-BASIC editor
« Reply #14 on: May 26, 2012, 02:19:06 pm »
Or maybe it first highlits the visible lines and then continues highlight in some other routine where you can also edit while it does all the other lines.

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