Forums SPINtax Highlighter (Chrome AND Firefox supported!)
ProcessingData...
Posts: 208
Get your beautiful forums code here!
A big "Thank you!" for Microcontrolled is in order, as without his PHP syntax highlighter, I probably wouldn't have tried doing this.
SPINtax will highlight SPIN and (some)PASM code in the forums for easier viewing and debugging. No more copying the code into Propeller Tool to see it better!
Notice: If you just click the download links, SPINtax probably won't install correctly. Follow the directions below.
SPINtax is currently available for:
(8/20/2013) Chrome - v0.9
(10/17/2011) Firefox (w/Greasemonkey) - v0.8
Instructions for Chrome:
1 - Right click on the download link for Chrome, and select "Save Link As..."
2 - Open the Extensions page in Chrome
3 - Drag the file from where you saved it onto the extensions page
4 - Chrome will help you install SPINtax from there! Have fun!
Instructions for Firefox:
1 - Install Greasemonkey
2 - Click on the download link for Firefox
3 - Greasemonkey will walk you through the installation of SPINtax. Have fun!
Please let me know in the comments if you find bugs, or want a new feature.
Enjoy your beautiful new code!
~ Taylor
If you would like to donate to keep this project improving, you can click here. Any amount is appreciated.
Thank you to
Jesse (avsa242)
for donating!
A big "Thank you!" for Microcontrolled is in order, as without his PHP syntax highlighter, I probably wouldn't have tried doing this.
SPINtax will highlight SPIN and (some)PASM code in the forums for easier viewing and debugging. No more copying the code into Propeller Tool to see it better!
Notice: If you just click the download links, SPINtax probably won't install correctly. Follow the directions below.
SPINtax is currently available for:
(8/20/2013) Chrome - v0.9
(10/17/2011) Firefox (w/Greasemonkey) - v0.8
Instructions for Chrome:
1 - Right click on the download link for Chrome, and select "Save Link As..."
2 - Open the Extensions page in Chrome
3 - Drag the file from where you saved it onto the extensions page
4 - Chrome will help you install SPINtax from there! Have fun!
Instructions for Firefox:
1 - Install Greasemonkey
2 - Click on the download link for Firefox
3 - Greasemonkey will walk you through the installation of SPINtax. Have fun!
Please let me know in the comments if you find bugs, or want a new feature.
Enjoy your beautiful new code!
~ Taylor
If you would like to donate to keep this project improving, you can click here. Any amount is appreciated.
Thank you to
Jesse (avsa242)
for donating!
Comments
But it looks great.
-Tor
-Ron
wont work on my code block which is bigger than just a snip.. scrolling will vastly improve this great add-on! excellent work so far.
I decided to take the server-side processing out of the equation, and write a syntax parser in Javascript.
As you can see in the screenshot below, it's coming along very well!
The next version of SPINtax will be auto-updating, and completely independent of my server being online.
(See the top post)
Works great even scrolls there seems to be very little if any delay now. Great work.
-Ron
Version 0.8 has been released. I'm still not sure if the autoupdate code is working, so it's probably safer to just download the new version.
~ Taylor
Great job!
SPINtax for Firefox is available now!
(See top post)
I'm glad it's working for you!
If some people want to use it in Safari or IE, they can try the Firefox extension in Greasekit, and Trixie respectively, although I can't say whether I will officially support those Ports of Greasemonkey.
This is really a fantastic extension. I've been using it for awhile now and have taken it for granted (I'll be on another computer or my tablet and be wondering why the SPIN isn't getting highlighted...then go "oh yeah...derrrrrrr"). It's been awhile, so I'm not sure if you're still maintaining this, but in case you are, I've been noticing some code snippets lately where it doesn't catch something and HTML starts "leaking" through. Here's an example: http://forums.parallax.com/showthread.php/149534-Propeller-Serial-with-Tight-Byte-Spacing?p=1200254&viewfull=1#post1200254. It's a PASM snippet with single-line comments.
I'm using spintax ver 0.8, x86_64 Linux Chrome 28.0.1500.89 beta.
Cheers,
Jesse
btw, do you take donations?
Wow! Thanks for the blast from the past; I had no idea that anyone was still using this. I'm glad you've found it useful, although I haven't done any work on it at all since back in 2011. I haven't taken the time to update it for a number of reasons, one of which was that about the time of the last update, Google changed how Chrome handles third-party extensions. I'm actually not terribly surprised at the bug you've found, as PASM is still something I have to wrap my head around, and I was much more comfortable implementing the highlighting for SPIN.
Yes, I will take donations if people are gracious enough to give them, you can do that here.
I might just revisit this project, get it up on the Chrome webstore, and fix the bug you've found and some other things about it that are bothering me now that I'm looking at it again. I've been working with another project recently that involves SPIN and PASM syntax highlighting; I might be able to use some of the elements from CyanIDE, my online IDE for the propeller.
In case anyone wants to install the current version for Chrome, you can download the .crx by right clicking the link, selecting "Save Link As...", and dragging the downloaded file into the extensions page.
Thanks again,
~ Taylor
I just made an update to the code, fixing the issue you noticed with the PASM.
I also updated how it looks to better fit the forums' default color scheme.
Awesome, it works! Thanks! And you're welcome...like I said, I definitely take it for granted...it's a really nice thing to have.
Cheers,
Jesse
Are these files still hosted somewhere? Not able to use the links in the first post, as I get '404' (not found) errors...
Thanks,
dgately