Is there any text editor with AWK highlight?

  • Follow


Kwrite is good for this, but since I have to use windows, so is there any
other text editor can highlight or even entry-help AWK file? Or any script
for any text editor on windows?

Thanks!


0
Reply Hans 8/25/2005 12:37:56 AM

Hans wrote:

> Kwrite is good for this, but since I have to use windows, so is there any
> other text editor can highlight or even entry-help AWK file? Or any script
> for any text editor on windows?

vim can highlight awk files (though there is a bit of a learning curve for
any vi-based editor).  I imagine emacs and jEdit also have highlighting for
awk; all three of these run on Windows.

HTH,
-- 
Benjamin D. Esham
bdesham@gmail.com   |   http://bdesham.net   |   AIM: bdesham128
"Shouldn't we give thanks first?"
"Thanks for what?"
"Well, that we're not Native Americans who got their land stolen
 in exchange for smallpox-infested blankets."
"Amen."                                        — /Gilmore Girls/
0
Reply Benjamin 8/25/2005 12:54:15 AM


On Thu, 25 Aug 2005 02:37:56 +0200, "Hans"
<luyang.han@student.uni-ulm.de> wrote:

>Kwrite is good for this, but since I have to use windows, so is there any
>other text editor can highlight or even entry-help AWK file? Or any script
>for any text editor on windows?
>
>Thanks!
>

Try www.crimsoneditor.com

DKM

To contact me directly, send EMAIL to (single letters all)
DEE_KAY_EMM AT EarthLink.net. [For example X_X_X@EarthLink.net.]
0
Reply Doug 8/25/2005 3:11:45 AM

Doug McClure <Dee_Kay_Emm@EarthLink.net> wrote in
news:k7eqg1tcaeaf0h9tftun9efv9p8057q9fh@4ax.com: 

> On Thu, 25 Aug 2005 02:37:56 +0200, "Hans"
> <luyang.han@student.uni-ulm.de> wrote:
> 
>>Kwrite is good for this, but since I have to use windows, so is there
>>any other text editor can highlight or even entry-help AWK file? Or
>>any script for any text editor on windows?

Try UltraEdit it has a lot of ekstra highlighting files.
And it is easy to create your own.

I use Ultraedit for any file task search, replace, replace in files on 
disk, conversion from window,unix,ebcdic 

It is the most handy tekst editing tool i have used.
I must say i stopped searching for other tools when i found this 6 years 
ago. Of course I have updated to newest version.

Do give it a try.

There is even a integrated IDE in the next version.


-- 
Kind regards Jens Borchert Pedersen
Odense Steel Shipyard Ltd. PO Box 176 , DK-5100 Odense C , DENMARK
mailto:jp@oss.junkdk       |  http://www.oss.junkdk
phone:  +45 6397 1027  |  fax: +45 6397 2360
0
Reply Jens 8/25/2005 10:10:05 AM

Hans <luyang.han@student.uni-ulm.de> wrote on Thu, 25 Aug 2005 02:37:56 +0200:
> Kwrite is good for this, but since I have to use windows, so is there any
> other text editor can highlight or even entry-help AWK file? Or any script
> for any text editor on windows?

Emacs, of course!  Both main varieties of Emacs (GNU emacs and XEmacs)
contain a fully worked out mode for AWK, featuring syntax highlighting,
automatic (and fully configurable) syntax-controlled indentation, filling
of comments, etc.

Main disadvantage:  Emacs is a very heavy program to learn if you don't
know it already.  However, once you've learnt it, it's _very_ productive.

> Thanks!

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

0
Reply Alan 8/25/2005 8:48:47 PM

Also you can use Textpad for Windows. If it doesn't already have a
syntax file for awk, you can crete your own (look at the other syntax
files for help) or look around to see if someone has already done it
for Textpad.
Basically _any_ editor which is (syntax) configurable will support
syntax highlighting.
Sashi
Alan Mackenzie wrote:
> Hans <luyang.han@student.uni-ulm.de> wrote on Thu, 25 Aug 2005 02:37:56 +0200:
> > Kwrite is good for this, but since I have to use windows, so is there any
> > other text editor can highlight or even entry-help AWK file? Or any script
> > for any text editor on windows?
>
> Emacs, of course!  Both main varieties of Emacs (GNU emacs and XEmacs)
> contain a fully worked out mode for AWK, featuring syntax highlighting,
> automatic (and fully configurable) syntax-controlled indentation, filling
> of comments, etc.
>
> Main disadvantage:  Emacs is a very heavy program to learn if you don't
> know it already.  However, once you've learnt it, it's _very_ productive.
>
> > Thanks!
>
> --
> Alan Mackenzie (Munich, Germany)
> Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
> (like "aa"), remove half of them (leaving, say, "a").

0
Reply Sashi 8/26/2005 1:05:25 PM

> so is there any other text editor can highlight or even
> entry-help AWK file?

The Zeus for Windows programmer's editor has a syntax
highlighting engine that is fully configurable:

  http://www.zeusedit.com/lookmain.html

It comes pre-configured for these languages:

  http://www.zeusedit.com/language.html

and it would be quite easy to configure it to highlight
AWK or any other programming language.

Note: Zeus is shareware (45 free trial).

Jussi Jumppanen
Author: Zeus for Windows Programmer's Editor

0
Reply jussij 8/31/2005 6:01:29 AM

Though I don't know beans about what's inside NetBeans (caffeine?
sorry! couldn't resist) I would imagine that it could be made to
support awk syntax coloring. There are already modules to support a
number of other languages. With most of awk's syntax being similar to
C's, perhaps the C editor module could be adapted for awk.

0
Reply Galen 8/31/2005 10:38:13 AM

Galen <gltackett@gmail.com> wrote on 31 Aug 2005 03:38:13 -0700:
> Though I don't know beans about what's inside NetBeans (caffeine?
> sorry! couldn't resist) I would imagine that it could be made to
> support awk syntax coloring. There are already modules to support a
> number of other languages. With most of awk's syntax being similar to
> C's, perhaps the C editor module could be adapted for awk.

Yes, but it's surprisingly tricky to do it properly.  Compare the
following two lines, for example:

/^[ \t]*#/  {comment++}    # count comment only lines.
^       ^^                 ^
n_blks = ($3 + 511) / 512  {count += n_blks}   # use /  # No >> in awk.
                    ^                          ^     ^  ^

Both of them contain the sequence "/ # / #", with other characters
interspersed.  Their interpretations are quite different, though.  And
each of those lines is a natural thing likely to appear in practice, not
a highly contrived exception.

Consider: the / sign is highly context dependent, being either a division
sign or a regexp delimiter.  "s within regexp delimiters don't delimit
strings, and /s within strings don't delimit regexps or denote division.
A # within either doesn't start a comment.  And the whole caboodle can be
completely thrown out of kilter if the previous line ends with an escaped
newline.

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

0
Reply Alan 9/2/2005 8:20:46 AM

8 Replies
273 Views

(page loaded in 0.126 seconds)

Similiar Articles:













7/21/2012 12:42:11 AM


Reply: