www.ClassicTW.com
https://mail.black-squirrel.com/

TWXProxy Highlighter for the ConTEXT Editor
https://mail.black-squirrel.com/viewtopic.php?f=15&t=13026
Page 1 of 2

Author:  Wotok [ Tue May 11, 2004 1:55 am ]
Post subject: 

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

Author:  Slim Shady [ Tue May 11, 2004 2:25 am ]
Post subject: 

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

Author:  Wotok [ Tue May 11, 2004 10:16 am ]
Post subject: 

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

Author:  PHX [ Tue May 11, 2004 2:34 pm ]
Post subject: 

How to implement the highlighter file?

Author:  Wotok [ Tue May 11, 2004 2:37 pm ]
Post subject: 

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

Author:  Tradewarrior55 [ Tue May 11, 2004 4:30 pm ]
Post subject: 

I have 2 other text editors I really like, But this one for scripts is awesome Thanx very much.

Author:  Wotok [ Tue May 11, 2004 5:14 pm ]
Post subject: 

Yay.. I knew someone else would like it :)

Author:  typh00n [ Tue May 11, 2004 6:09 pm ]
Post subject: 

props wotok
very cool schtick :P

Author:  PHX [ Tue May 11, 2004 11:11 pm ]
Post subject: 

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.

Author:  Promethius [ Wed May 12, 2004 5:34 am ]
Post subject: 

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!

Author:  Wotok [ Wed May 12, 2004 10:36 am ]
Post subject: 

:) 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. :)

Author:  PHX [ Wed May 12, 2004 4:19 pm ]
Post subject: 

Ok it was the Allow Cursor after end of line check box...

Author:  Wotok [ Wed May 12, 2004 5:47 pm ]
Post subject: 

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

Author:  PHX [ Wed May 12, 2004 8:21 pm ]
Post subject: 

Darn that is handy.....I love this program.

Author:  Wotok [ Wed May 12, 2004 11:34 pm ]
Post subject: 

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

Page 1 of 2 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/