New EScript Highlighted Pastebin

Post your Custom Scripts or Packages.

Moderator: POL Developer

Post Reply
User avatar
CWO
POL Expert
Posts: 1158
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

New EScript Highlighted Pastebin

Post by CWO »

Still a work in progress, it has a few small glitches with it still that I'm working on but I've managed to make a workable EScript version of pastebin. Its located here

http://www.cwo333.com/pastebin

This may even make it a bit easier to help people via forums since it does syntax highlighting very well and allows modifications to be posted with a history of what has changed. If you've never used a pastebin before, you should give it a try.

Currently known glitches:
  • Object methods and properties can't contain a . in the keyword list or else they won't highlight. And without the ., anything else with the exact name (variables for instance) are also highlighted as if they were a property/method. The latter is currently done on my page.

I also have the source available on this post.
Attachments
pastebin.zip
EScript Pastebin v1.2
(89.72 KiB) Downloaded 299 times
Last edited by CWO on Tue Apr 21, 2009 9:05 pm, edited 1 time in total.
User avatar
CWO
POL Expert
Posts: 1158
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Re: New EScript Highlighted Pastebin

Post by CWO »

Updated the source.
Fixed:
  • Word wrap on the code. Now it will instead display a horizontal scrollbar.
  • Firefox glitch that displayed the text in black sometimes.
User avatar
CWO
POL Expert
Posts: 1158
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Re: New EScript Highlighted Pastebin

Post by CWO »

Updated the source again to v1.2.

Changes:
  • /layout.php - Added the ability to use a tab in the textbox without losing focus on the box.
  • /pastebin/pastebin.class.php - Watered out the brightness of the yellow a bit when highlighting lines. This will make it easier to read white text that's being highlighted.
User avatar
CWO
POL Expert
Posts: 1158
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Re: New EScript Highlighted Pastebin

Post by CWO »

I've updated the website I have this hosted on http://www.cwo333.com/pastebin

I need to run it through a bit of testing first though. This update specifically combats spam. If someone uses http:// in the code and doesn't have the strings: "use http", "function", "program", "{", or "}", it will reject the posting. But since I'm not that proficient with scripting PHP, I can't completely be sure I've done it effectively beyond a few obvious tests and using what has been spammed on the pastebin in the past.
Post Reply