View unanswered posts | View active topics It is currently Thu Apr 23, 2026 4:03 am



Reply to topic  [ 30 posts ]  Go to page 1, 2  Next
 TWXProxy Highlighter for the ConTEXT Editor 
Author Message
Ensign

Joined: Thu Jan 23, 2003 3:00 am
Posts: 206
Location: USA
Unread post 
First, I'd like to say I use ConTEXT for all my text file editing needs. It's a small but powerful text editor supporting, among other things, keyword highlighting.

I've come up with a drop-in highlighting file for the TWXProxy scripting language. You can check it out here: http://tradewars.wotok.com/files/utils/twxproxy.chl .

I highly recommend checking out ConTEXT (http://www.fixedsys.com/context/index.html) if you're an avid scripter. :)

Here's a blatant cut and paste of the featurs of this editor from the ConTEXT website:

quote:Features

unlimited open files
unlimited editing file size, 4kB line length
powerful syntax highlighting for:
C/C++
Delphi/Pascal
Java
Java Script
Visual Basic
Perl/CGI
HTML
SQL
FoxPro
80x86 assembler
Python
PHP
Tcl/Tk
powerful custom defined syntax highlighter
multilanguage support (supported languages: English, German, French, Croatian, Chinese, Czech, Danish, Dutch, Estonian, Esperanto, Spanish, Galego, Italian, Hungarian, Portuguese (Brazil), Russian, Slovakian, Polish, Lithuanian, Latvian, Slovenian, Turkish)
project workspaces support
unicode UTF8 support
code templates
customizable help files for each file type
file explorer with favorites list
export to HTML/RTF
conversion DOS->UNIX->Macintosh file formats
editing position remembering across files
macro recorder
commenting/uncommenting code
text sort
normal and columnar text selection
bookmarks
find and replace text in all open files
regular expressions in find/replace dialogs
C/Java-style block auto indent/outdent
customizable color printing with print preview
exporting configuration stored in registry
customizable syntax highlighting colors, cursor shapes, right margin, gutter, line spacing...
user definable execution keys, depending on file type
capturing console applications standard output
compiler output parser for positioning on error line
powerful command line handler
install and uninstall
minimize to system tray
it's FREE!
Planned features for v1.0

hex editor
plug-in architecture for external tools
enhancing macro recorder features and macro script language
code browser for C/C++, Delphi and Visual Basic projects
paragraphs and real word wrapping
more powerful custom highlighter definition language
file compare
other misc. tools

_________________
--==[ http://tradewars.wotok.com ]==--

rm -rf /bin/laden

Image


Tue May 11, 2004 1:55 am
Profile ICQ WWW
Gameop

Joined: Thu Jun 06, 2002 2:00 am
Posts: 2371
Location: USA
Unread post 
jigga what? do i need to know this? what does it do for us scipting retards? (i can call myself retarded right.. that doesnt offend anyone?) hehe
Slim

_________________
Ask Slim!

--==[The Outfit]==--


Tue May 11, 2004 2:25 am
Profile ICQ WWW
Ensign

Joined: Thu Jan 23, 2003 3:00 am
Posts: 206
Location: USA
Unread post 
It's tabular in design.. you can have multiple scripts open in one instance of the editor.. just select the tabs of the scripts you want to bring forward. No more having 6 copies of notepad running.. heh..

The highlighter I made simply changes the color of certain text. ConTEXT must have highlight support for 50 different programming languages built in, or you can make your own. I took the basic format for a highlighter file, replaced all the keywords with twx ones, and changed the colors to highlight things so they'd stand out best.

Having certain tags in different colors helps you go see, oh just try it dammit. Here's a screenie from the site :)

Image

_________________
--==[ http://tradewars.wotok.com ]==--

rm -rf /bin/laden

Image


Tue May 11, 2004 10:16 am
Profile ICQ WWW
Lieutenant

Joined: Sat Mar 03, 2001 3:00 am
Posts: 592
Location: USA
Unread post 
How to implement the highlighter file?


Tue May 11, 2004 2:34 pm
Profile ICQ YIM WWW
Ensign

Joined: Thu Jan 23, 2003 3:00 am
Posts: 206
Location: USA
Unread post 
Drop my file in your c:\program files\context\highlighters directory and restart ConTEXT. It should automatically highlight *.ts files. You can manually select a highlighter file int he Tool/Set Highlighter menu in ConTEXT.

Oh.. forgot to mention that this editor supports projects. You can assign various files as part of a single project. Then when you start context and open the project, all your files for that project come up in the editor.

And ConTEXT is free :)

I feel like the guy in the Wendy's commercial...heh

_________________
--==[ http://tradewars.wotok.com ]==--

rm -rf /bin/laden

Image


Tue May 11, 2004 2:37 pm
Profile ICQ WWW
Ensign

Joined: Wed Feb 26, 2003 3:00 am
Posts: 277
Location: USA
Unread post 
I have 2 other text editors I really like, But this one for scripts is awesome Thanx very much.

_________________
Striding over the terrain, cutting down all who dare stand in the way using a bladed baseball bat, cometh TW55! And he gives a spectacular grunt:

"Hail the blood-letting! I lay waste to all I see until there is no more hope!!"


==================================================
" Just because I am paranoid doesn't mean they are not after me!!"
http://www.geocities.com/tradewarrior55/index.html
Tradewarrior55@yahoo.com


Tue May 11, 2004 4:30 pm
Profile YIM WWW
Ensign

Joined: Thu Jan 23, 2003 3:00 am
Posts: 206
Location: USA
Unread post 
Yay.. I knew someone else would like it :)

_________________
--==[ http://tradewars.wotok.com ]==--

rm -rf /bin/laden

Image


Tue May 11, 2004 5:14 pm
Profile ICQ WWW
Chief Warrant Officer
User avatar

Joined: Sun Mar 30, 2003 3:00 am
Posts: 186
Location: USA
Unread post 
props wotok
very cool schtick :P


Tue May 11, 2004 6:09 pm
Profile
Lieutenant

Joined: Sat Mar 03, 2001 3:00 am
Posts: 592
Location: USA
Unread post 
Yes is a very very nice program...2 questions.
1. I have to manually select your highlighter for each different script I open. I can close and reopen the same script and the highlighter will be on but when opening a not previously opened one I have to choose it. Is this how its supposed to be? Is there a way to make it automatic.

2. Its about annoying as hell that when I use the mouse to set the cursor on a certain line, it drops the cursor exactly in the spot where I click instead of going to end of the existing text. A way to fix this? If not I can live with it.

Aside from that this is an awesome editor and has become my new favorite with your highlighter. Thanks for the post.


Tue May 11, 2004 11:11 pm
Profile ICQ YIM WWW
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 
quote:Originally posted by PHX

Yes is a very very nice program...2 questions.
1. I have to manually select your highlighter for each different script I open. I can close and reopen the same script and the highlighter will be on but when opening a not previously opened one I have to choose it. Is this how its supposed to be? Is there a way to make it automatic.


The editor does look good from what little I have seen of it - just got the highlighter to work automatically a bit ago. I found that it worked after I had a .ts file open, went to tools->highlighter->customize types->edit and selected the twxproxy entry - deleted the ts association and then added it -- highlights appeared and then everytime I opened a file (new or otherwise) they worked.

Many thanks to Wotok for showing us this editor and providing the highlight file for it!

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Wed May 12, 2004 5:34 am
Profile ICQ
Ensign

Joined: Thu Jan 23, 2003 3:00 am
Posts: 206
Location: USA
Unread post 
:) Yea, try that PHX... delete the .ts association and readd it. As far as the mouse goes.. I think it's supposed to be that way. You can go to Options / Environment Options and see if there's a settign for that. I noticed an 'Advanced Home Cursor' checkbox, but don't have time to check it out.

I'm glad I could contribute in some way to the TW community. Even if it helps you write better scripts to beat my tail with. :)

_________________
--==[ http://tradewars.wotok.com ]==--

rm -rf /bin/laden

Image


Wed May 12, 2004 10:36 am
Profile ICQ WWW
Lieutenant

Joined: Sat Mar 03, 2001 3:00 am
Posts: 592
Location: USA
Unread post 
Ok it was the Allow Cursor after end of line check box...


Wed May 12, 2004 4:19 pm
Profile ICQ YIM WWW
Ensign

Joined: Thu Jan 23, 2003 3:00 am
Posts: 206
Location: USA
Unread post 
This thing's the swiss army knife of text editors.. My favorite shortcut has to be ctrl-shift-c for commenting out an entire block of text :P

_________________
--==[ http://tradewars.wotok.com ]==--

rm -rf /bin/laden

Image


Wed May 12, 2004 5:47 pm
Profile ICQ WWW
Lieutenant

Joined: Sat Mar 03, 2001 3:00 am
Posts: 592
Location: USA
Unread post 
Darn that is handy.....I love this program.


Wed May 12, 2004 8:21 pm
Profile ICQ YIM WWW
Ensign

Joined: Thu Jan 23, 2003 3:00 am
Posts: 206
Location: USA
Unread post 
I updated the highlighter file. I fixed the problem where words with _ and . in them were two different colors..hehe Also, added some coloring to highlight brackets when you select one (it highlights the paired brackets).

The file is located here: http://tradewars.wotok.com/files/utils/twxproxy.chl

Just copy it to your /highlighters folder under ConTEXT

_________________
--==[ http://tradewars.wotok.com ]==--

rm -rf /bin/laden

Image


Wed May 12, 2004 11:34 pm
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 30 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 32 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.