For a while now, I have been using UltraEdit on my Windows box. The ability to write scripts with a familiar language (JavaScript) has proved to be extremely useful. The only problem is that I cannot use it on my Linux box at work. Is there a comparable text editor that runs on Linux and has an integrated scripting engine?
有一段时间了,我一直在我的Windows机器上使用UltraEdit。用熟悉的语言(JavaScript)编写脚本的能力已被证明是非常有用的。唯一的问题是我不能在我的Linux机箱上使用它。是否有可比的文本编辑器在Linux上运行并具有集成的脚本引擎?
Not breaking the bank and being cross-platform would be great.
不破坏银行和跨平台将是伟大的。
EDIT:While recordable macros are great, I use the scripting engine much more.
编辑:虽然可记录的宏很棒,但我更多地使用脚本引擎。
14 个解决方案
#1
30
All of the major open-source editors and most of the others hava a scripting facility of some description - some (Emacs in particular) are famous for it. The only ones that don't tend to be very lightweight ones like pico.
所有主要的开源编辑器和大多数其他编辑器都有一些描述的脚本设施 - 有些(特别是Emacs)因此而闻名。唯一不像pico那样非常轻量级的那些。
vim has a native scripting language and can also be built with embedded Python, Tcl or Perl interepreters that can operate on selections, buffers etc through the plugin mechanism. Emacs is all about scripting - it's has a LISP interpreter built right into the core of the system and most of the editor is written in LISP. There is a running joke about emacs describing it as a LISP interpreter that someone just happened to use to write a text editor.
vim有一个本机脚本语言,也可以使用嵌入式Python,Tcl或Perl interepreters构建,可以通过插件机制对选择,缓冲等进行操作。 Emacs就是脚本 - 它有一个内置于系统核心的LISP解释器,大部分编辑器都是用LISP编写的。有一个关于emacs的笑话,它将它描述为一个LISP解释器,有人恰好用它来编写文本编辑器。
Vim's user interface is descended from vi, which is somewhat quirky but very powerful once you get used to it. It also does recorded keyboard macros particularly well and has a very nice regular expression search/replace facility.
Vim的用户界面来自vi,它有点古怪,但是一旦你习惯它就会非常强大。它还可以很好地记录键盘宏,并且具有非常好的正则表达式搜索/替换功能。
Emacs is regarded as a bit of a baroque monstrosity and is very large and complex. However, its scripting capability is second to none and there is an enormous variety of macro packages that do many things. It has a very loyal following of people who swear by it; once you've gotten over the learning curve (there is an enormous body of resources on the web to help with this) it's a very powerful system indeed. You can customise emacs into a whole IDE and there are people around who claim to spend the majority of their tube time in it.
Emacs被认为是一种巴洛克式的怪物,非常庞大而复杂。但是,它的脚本编写能力是首屈一指的,并且有很多宏的软件包可以做很多事情。它有一个非常忠诚的追随者,他们发誓;一旦你已经超越了学习曲线(网上有大量资源来帮助解决这个问题),它确实是一个非常强大的系统。您可以将emacs自定义为整个IDE,并且周围的人声称他们花费了大部分时间。
Both of these editors can work in text mode or with a GUI and are highly portable, running on a wide variety of platforms. They are both open-source.
这两个编辑器都可以在文本模式或GUI中工作,并且具有高度可移植性,可在各种平台上运行。它们都是开源的。
I've used both; I used to use XEmacs (a major code-fork of emacs that goes back a number of years) back in the 1990s but went to vim later on. I even use vim on Windows.
我用过两者;我曾经在20世纪90年代使用过XEmacs(可以追溯到几年前的emacs的主要代号)但后来又去了vim。我甚至在Windows上使用vim。
If you find the user interface of Vim or Emacs a bit too much, there are a variety of other text editors available, many of which offer scripting. Examples of these are SciTE, which has a built in Lua interpreter, NEdit, which has a homebrew macro language of its own or GEdit, which is substantially written in Python (which can also be used for scripting it) and has a plugin API.
如果您发现Vim或Emacs的用户界面有点过多,可以使用各种其他文本编辑器,其中许多都提供脚本编写。这些示例包括SciTE,它有一个内置的Lua解释器,NEdit,它有自己的自制宏语言或GEdit,它基本上用Python编写(也可以用于编写脚本)并且有一个插件API。
EDIT: Outside of a few specific projects (e.g. Mozilla) Javascript never got much traction as a stand-alone or embedded scripting language in open-source circles. Historically there wasn't a popular open-source Javascript interpreter that got widespread acceptance in the way that Python or Tcl/Tk did. Javascript is more widely used in closed source systems such as UltraEdit or InDesign (to name a couple) whereas other languages were more popular on open-source projects.
编辑:除了一些特定项目(例如Mozilla)之外,Javascript在开源圈子中作为独立或嵌入式脚本语言从未获得过多的关注。从历史上看,没有一种流行的开源Javascript解释器以Python或Tcl / Tk的方式得到广泛认可。 Javascript更广泛地用于封闭源系统,如UltraEdit或InDesign(仅举几例),而其他语言在开源项目中更受欢迎。
None of the open-source text editors that I am aware of feature javascript as an option for a scripting language (feel free to step in and comment or edit this if you know of one). You will probably have to move off Javascript to another language such as Python or LISP. However, now that QT comes with a Javascript interpreter (QTScript) you may find some of the KDE-based ones offering this as a scripting option, but I am not specifically aware of any off the top of my head.
我所知道的所有开源文本编辑器都没有将javascript作为脚本语言的选项(如果你知道的话,可以随意介入并评论或编辑它)。您可能不得不将Javascript移到另一种语言,如Python或LISP。但是,现在QT附带了一个Javascript解释器(QTScript),你可能会发现一些基于KDE的解释器提供了这个作为脚本选项,但是我并没有特别注意到这一点。
#2
4
emacs is free and has its own embedded lisp dialect which can be used to write nearly anything, including light scripting as well as mail user agents and IRC clients ;-)
emacs是免费的,有自己的嵌入式lisp方言,可用于编写几乎任何东西,包括轻脚本以及邮件用户代理和IRC客户端;-)
There's a bit of a learning curve, but my experience with emacs has been very positive. I don't like modal interfaces too much, and no other editor puts the navigation shortcuts right under your fingers.
有一点学习曲线,但我对emacs的经验非常积极。我不太喜欢模态接口,没有其他编辑器将导航快捷键放在你的手指下。
#3
4
Vim is omnipresent and vimscript is really easy and text-editing oriented: http://vimdoc.sourceforge.net/htmldoc/usr_41.html
Vim是无所不在的,vimscript非常简单,面向文本编辑:http://vimdoc.sourceforge.net/htmldoc/usr_41.html
That comes by default. You can also use Python, Ruby, Perl, Scheme... but that requires compiling.
那是默认的。您也可以使用Python,Ruby,Perl,Scheme ......但这需要编译。
Python might be a good choice, since omnicomplete requires it. I run a separate binary for omnicomplete anyway since I like the ultra-lean vim for other usage, check here: http://vim.wikia.com/wiki/Compile_a_separate_copy_of_Vim_for_Python_coding
Python可能是一个不错的选择,因为omnicomplete需要它。我为omnicomplete运行了一个单独的二进制文件,因为我喜欢超瘦的vim用于其他用途,请点击此处:http://vim.wikia.com/wiki/Compile_a_separate_copy_of_Vim_for_Python_coding
Honestly I haven't used python to script vim per se. I usually code, python or not, with vanilla vim and no auto-complete. I do however call python and any other command from vim to process my files line by line, might reply with more about that if you are interested, but that doesn't require to compile anything, works as is.
老实说我没有用python来编写vim脚本。我通常编码,python或不,与vanilla vim,没有自动完成。然而,我确实从vim调用python和任何其他命令来逐行处理我的文件,如果你感兴趣,可以回复更多关于它的内容,但是这不需要编译任何东西,按原样工作。
EDIT: if you want a point-and-click editor, you can run Cream on gVim http://cream.sourceforge.net/download.html I still think that vim takes little time to get used to and is VERY worth learning, more so considering you can use your basic vi knowledge to connect to a server via SSH no problem, and it's installed in any *nix. I like knowledge I can reuse, saves me time and trouble long term.
编辑:如果你想要一个点击式编辑器,你可以运行霜上gVim http://cream.sourceforge.net/download.html我仍然认为vim需要很少的时间来习惯,非常值得学习,更多考虑您可以使用您的基本vi知识通过SSH连接到服务器没问题,并且它安装在任何* nix中。我喜欢我可以重复使用的知识,节省我的时间和长期的麻烦。
#4
4
I use jEdit, that is a great editor and allows to be scripted with beanshell. As it is written in Java it runs well under Windows and Linux.
我使用jEdit,这是一个很棒的编辑器,允许使用beanshell编写脚本。由于它是用Java编写的,因此在Windows和Linux下运行良好。
Simon Groenewolt mentioned, that a plugin (JavascriptShell) exists, that allows you to write Macros and Scripts also in Javascript, not only in Beanshell.
Simon Groenewolt提到,存在一个插件(JavascriptShell),它允许您在Javascript中编写宏和脚本,而不仅仅是在Beanshell中。
#5
3
If you don't need really complex scripting, vim/gvim allows you to record a keystroke sequence and play it back. And you can give a repeat count on the playback, so you can record an operation on one line, then repeat it for the next 10,000 lines in one step.
如果您不需要非常复杂的脚本,vim / gvim允许您录制击键序列并进行回放。并且您可以重复计数播放,因此您可以在一行上记录操作,然后一步重复下一行10,000行。
#6
3
Wow, I really don't want to start a holy war here, but all these Emacs recommendations are kind of missing the point. Emacs is very powerful, but let's be honest. It doesn't have a learning curve so much as a learning WALL. Going from a point-and-click IDE style editor like UltraEdit is going to be a huge culture shock.
哇,我真的不想在这里开始一场神圣的战争,但所有这些Emacs建议都有点遗漏这一点。 Emacs非常强大,但说实话。它没有像学习WALL那样的学习曲线。从像UltraEdit这样的点击式IDE样式编辑器开始将是一个巨大的文化冲击。
And honestly, when someone says they like to write scripts in javascript, and are looking for something similar in Linux, the first thing you say is "learn LISP"?!
老实说,当有人说他们喜欢用javascript编写脚本,并且正在寻找类似Linux的东西时,你首先要说的是“学习LISP”?!
This is why people think Linux is hard to use
这就是人们认为Linux难以使用的原因
I'm going to go in another direction entirely and suggest Aptana Studio
我将完全朝另一个方向走,并建议Aptana Studio
It has built-in highlighting and code-completion for a variety of languages, and supports scripting in javascript with Eclipse Monkey. It is based on Eclipse, and therefore runs on java hence multiplatform. And it is available for free.
它具有针对各种语言的内置突出显示和代码完成功能,并支持使用Eclipse Monkey在javascript中编写脚本。它基于Eclipse,因此可以在java上运行,因此可以在多平台上运行。它是免费提供的。
#7
2
It's kind of cliche, but emacs. Or am I misunderstanding what UE's script engine is?
这有点陈词滥调,但是emacs。或者我误解了UE的脚本引擎是什么?
#8
2
Try Emacs, either XEmacs or GNU Emacs.
试试Emacs,XEmacs或GNU Emacs。
#9
2
I use gedit. You can write plugins in Python.
我用gedit。你可以用Python编写插件。
#10
2
Komodo Edit is made on top of Mozilla's XUL Runner. It offers possibilities for extending it thorough either extensions (like Firefox) or macros, snippets, commands. You may write these snippets in either JavaScript or Python, which is nice, but you still have to know the API in order to do something useful.
Komodo Edit是在Mozilla的XUL Runner之上制作的。它提供了通过扩展(如Firefox)或宏,片段,命令扩展它的可能性。你可以用JavaScript或Python编写这些片段,这很好,但你仍然需要知道API才能做一些有用的事情。
Being built with Mozilla technology it runs on Linux too.
使用Mozilla技术构建它也可以在Linux上运行。
#11
2
It looks like Komodo Edit, SciTE, and Eclipse Monkey are the winners. Komodo Edit seems to be most similar to Ultra Edit. SciTE is something I've used before, and Lua is not that difficult; SciTE's API though does not seem as extensive as Komodo Edit's API. Eclipse Monkey is something I am definitely going to use, but it requires Eclipse, which is definitely not a text editor.
看起来像Komodo Edit,SciTE和Eclipse Monkey是赢家。 Komodo Edit似乎与Ultra Edit最相似。 SciTE是我以前用过的东西,Lua并不那么难;虽然SciTE的API看起来并不像Komodo Edit的API那么广泛。 Eclipse Monkey是我肯定会使用的东西,但它需要Eclipse,它绝对不是文本编辑器。
EDIT: UltraEdit is coming out for Mac and Linux Soon.
编辑:UltraEdit即将推出Mac和Linux。
#12
1
The traditional way for doing scripted text editing in Linux is to use the facilities that have (almost) always been available in *nixes: sed, awk, grep, things of that nature. Sure, they maybe don't appear to be as "handy" as one might find an integrated Javascript engine, but they are very mature and work well. If this scripting language MUST be inside the editor, Emacs is probably a good one here too.
在Linux中进行脚本文本编辑的传统方法是使用(几乎)始终在* nixes中提供的工具:sed,awk,grep,这种性质的东西。当然,他们可能看起来并不像人们可能找到一个集成的Javascript引擎那样“方便”,但它们非常成熟并且运行良好。如果这个脚本语言必须在编辑器中,那么Emacs也可能是一个很好的。
You could use an "integrated" type solution to solve the problem, as lots of others have mentioned, but IMHO the commandline is more powerful in this regard.
您可以使用“集成”类型解决方案来解决问题,正如许多其他人所提到的那样,但恕我直言,命令行在这方面更加强大。
#13
#14
#1
30
All of the major open-source editors and most of the others hava a scripting facility of some description - some (Emacs in particular) are famous for it. The only ones that don't tend to be very lightweight ones like pico.
所有主要的开源编辑器和大多数其他编辑器都有一些描述的脚本设施 - 有些(特别是Emacs)因此而闻名。唯一不像pico那样非常轻量级的那些。
vim has a native scripting language and can also be built with embedded Python, Tcl or Perl interepreters that can operate on selections, buffers etc through the plugin mechanism. Emacs is all about scripting - it's has a LISP interpreter built right into the core of the system and most of the editor is written in LISP. There is a running joke about emacs describing it as a LISP interpreter that someone just happened to use to write a text editor.
vim有一个本机脚本语言,也可以使用嵌入式Python,Tcl或Perl interepreters构建,可以通过插件机制对选择,缓冲等进行操作。 Emacs就是脚本 - 它有一个内置于系统核心的LISP解释器,大部分编辑器都是用LISP编写的。有一个关于emacs的笑话,它将它描述为一个LISP解释器,有人恰好用它来编写文本编辑器。
Vim's user interface is descended from vi, which is somewhat quirky but very powerful once you get used to it. It also does recorded keyboard macros particularly well and has a very nice regular expression search/replace facility.
Vim的用户界面来自vi,它有点古怪,但是一旦你习惯它就会非常强大。它还可以很好地记录键盘宏,并且具有非常好的正则表达式搜索/替换功能。
Emacs is regarded as a bit of a baroque monstrosity and is very large and complex. However, its scripting capability is second to none and there is an enormous variety of macro packages that do many things. It has a very loyal following of people who swear by it; once you've gotten over the learning curve (there is an enormous body of resources on the web to help with this) it's a very powerful system indeed. You can customise emacs into a whole IDE and there are people around who claim to spend the majority of their tube time in it.
Emacs被认为是一种巴洛克式的怪物,非常庞大而复杂。但是,它的脚本编写能力是首屈一指的,并且有很多宏的软件包可以做很多事情。它有一个非常忠诚的追随者,他们发誓;一旦你已经超越了学习曲线(网上有大量资源来帮助解决这个问题),它确实是一个非常强大的系统。您可以将emacs自定义为整个IDE,并且周围的人声称他们花费了大部分时间。
Both of these editors can work in text mode or with a GUI and are highly portable, running on a wide variety of platforms. They are both open-source.
这两个编辑器都可以在文本模式或GUI中工作,并且具有高度可移植性,可在各种平台上运行。它们都是开源的。
I've used both; I used to use XEmacs (a major code-fork of emacs that goes back a number of years) back in the 1990s but went to vim later on. I even use vim on Windows.
我用过两者;我曾经在20世纪90年代使用过XEmacs(可以追溯到几年前的emacs的主要代号)但后来又去了vim。我甚至在Windows上使用vim。
If you find the user interface of Vim or Emacs a bit too much, there are a variety of other text editors available, many of which offer scripting. Examples of these are SciTE, which has a built in Lua interpreter, NEdit, which has a homebrew macro language of its own or GEdit, which is substantially written in Python (which can also be used for scripting it) and has a plugin API.
如果您发现Vim或Emacs的用户界面有点过多,可以使用各种其他文本编辑器,其中许多都提供脚本编写。这些示例包括SciTE,它有一个内置的Lua解释器,NEdit,它有自己的自制宏语言或GEdit,它基本上用Python编写(也可以用于编写脚本)并且有一个插件API。
EDIT: Outside of a few specific projects (e.g. Mozilla) Javascript never got much traction as a stand-alone or embedded scripting language in open-source circles. Historically there wasn't a popular open-source Javascript interpreter that got widespread acceptance in the way that Python or Tcl/Tk did. Javascript is more widely used in closed source systems such as UltraEdit or InDesign (to name a couple) whereas other languages were more popular on open-source projects.
编辑:除了一些特定项目(例如Mozilla)之外,Javascript在开源圈子中作为独立或嵌入式脚本语言从未获得过多的关注。从历史上看,没有一种流行的开源Javascript解释器以Python或Tcl / Tk的方式得到广泛认可。 Javascript更广泛地用于封闭源系统,如UltraEdit或InDesign(仅举几例),而其他语言在开源项目中更受欢迎。
None of the open-source text editors that I am aware of feature javascript as an option for a scripting language (feel free to step in and comment or edit this if you know of one). You will probably have to move off Javascript to another language such as Python or LISP. However, now that QT comes with a Javascript interpreter (QTScript) you may find some of the KDE-based ones offering this as a scripting option, but I am not specifically aware of any off the top of my head.
我所知道的所有开源文本编辑器都没有将javascript作为脚本语言的选项(如果你知道的话,可以随意介入并评论或编辑它)。您可能不得不将Javascript移到另一种语言,如Python或LISP。但是,现在QT附带了一个Javascript解释器(QTScript),你可能会发现一些基于KDE的解释器提供了这个作为脚本选项,但是我并没有特别注意到这一点。
#2
4
emacs is free and has its own embedded lisp dialect which can be used to write nearly anything, including light scripting as well as mail user agents and IRC clients ;-)
emacs是免费的,有自己的嵌入式lisp方言,可用于编写几乎任何东西,包括轻脚本以及邮件用户代理和IRC客户端;-)
There's a bit of a learning curve, but my experience with emacs has been very positive. I don't like modal interfaces too much, and no other editor puts the navigation shortcuts right under your fingers.
有一点学习曲线,但我对emacs的经验非常积极。我不太喜欢模态接口,没有其他编辑器将导航快捷键放在你的手指下。
#3
4
Vim is omnipresent and vimscript is really easy and text-editing oriented: http://vimdoc.sourceforge.net/htmldoc/usr_41.html
Vim是无所不在的,vimscript非常简单,面向文本编辑:http://vimdoc.sourceforge.net/htmldoc/usr_41.html
That comes by default. You can also use Python, Ruby, Perl, Scheme... but that requires compiling.
那是默认的。您也可以使用Python,Ruby,Perl,Scheme ......但这需要编译。
Python might be a good choice, since omnicomplete requires it. I run a separate binary for omnicomplete anyway since I like the ultra-lean vim for other usage, check here: http://vim.wikia.com/wiki/Compile_a_separate_copy_of_Vim_for_Python_coding
Python可能是一个不错的选择,因为omnicomplete需要它。我为omnicomplete运行了一个单独的二进制文件,因为我喜欢超瘦的vim用于其他用途,请点击此处:http://vim.wikia.com/wiki/Compile_a_separate_copy_of_Vim_for_Python_coding
Honestly I haven't used python to script vim per se. I usually code, python or not, with vanilla vim and no auto-complete. I do however call python and any other command from vim to process my files line by line, might reply with more about that if you are interested, but that doesn't require to compile anything, works as is.
老实说我没有用python来编写vim脚本。我通常编码,python或不,与vanilla vim,没有自动完成。然而,我确实从vim调用python和任何其他命令来逐行处理我的文件,如果你感兴趣,可以回复更多关于它的内容,但是这不需要编译任何东西,按原样工作。
EDIT: if you want a point-and-click editor, you can run Cream on gVim http://cream.sourceforge.net/download.html I still think that vim takes little time to get used to and is VERY worth learning, more so considering you can use your basic vi knowledge to connect to a server via SSH no problem, and it's installed in any *nix. I like knowledge I can reuse, saves me time and trouble long term.
编辑:如果你想要一个点击式编辑器,你可以运行霜上gVim http://cream.sourceforge.net/download.html我仍然认为vim需要很少的时间来习惯,非常值得学习,更多考虑您可以使用您的基本vi知识通过SSH连接到服务器没问题,并且它安装在任何* nix中。我喜欢我可以重复使用的知识,节省我的时间和长期的麻烦。
#4
4
I use jEdit, that is a great editor and allows to be scripted with beanshell. As it is written in Java it runs well under Windows and Linux.
我使用jEdit,这是一个很棒的编辑器,允许使用beanshell编写脚本。由于它是用Java编写的,因此在Windows和Linux下运行良好。
Simon Groenewolt mentioned, that a plugin (JavascriptShell) exists, that allows you to write Macros and Scripts also in Javascript, not only in Beanshell.
Simon Groenewolt提到,存在一个插件(JavascriptShell),它允许您在Javascript中编写宏和脚本,而不仅仅是在Beanshell中。
#5
3
If you don't need really complex scripting, vim/gvim allows you to record a keystroke sequence and play it back. And you can give a repeat count on the playback, so you can record an operation on one line, then repeat it for the next 10,000 lines in one step.
如果您不需要非常复杂的脚本,vim / gvim允许您录制击键序列并进行回放。并且您可以重复计数播放,因此您可以在一行上记录操作,然后一步重复下一行10,000行。
#6
3
Wow, I really don't want to start a holy war here, but all these Emacs recommendations are kind of missing the point. Emacs is very powerful, but let's be honest. It doesn't have a learning curve so much as a learning WALL. Going from a point-and-click IDE style editor like UltraEdit is going to be a huge culture shock.
哇,我真的不想在这里开始一场神圣的战争,但所有这些Emacs建议都有点遗漏这一点。 Emacs非常强大,但说实话。它没有像学习WALL那样的学习曲线。从像UltraEdit这样的点击式IDE样式编辑器开始将是一个巨大的文化冲击。
And honestly, when someone says they like to write scripts in javascript, and are looking for something similar in Linux, the first thing you say is "learn LISP"?!
老实说,当有人说他们喜欢用javascript编写脚本,并且正在寻找类似Linux的东西时,你首先要说的是“学习LISP”?!
This is why people think Linux is hard to use
这就是人们认为Linux难以使用的原因
I'm going to go in another direction entirely and suggest Aptana Studio
我将完全朝另一个方向走,并建议Aptana Studio
It has built-in highlighting and code-completion for a variety of languages, and supports scripting in javascript with Eclipse Monkey. It is based on Eclipse, and therefore runs on java hence multiplatform. And it is available for free.
它具有针对各种语言的内置突出显示和代码完成功能,并支持使用Eclipse Monkey在javascript中编写脚本。它基于Eclipse,因此可以在java上运行,因此可以在多平台上运行。它是免费提供的。
#7
2
It's kind of cliche, but emacs. Or am I misunderstanding what UE's script engine is?
这有点陈词滥调,但是emacs。或者我误解了UE的脚本引擎是什么?
#8
2
Try Emacs, either XEmacs or GNU Emacs.
试试Emacs,XEmacs或GNU Emacs。
#9
2
I use gedit. You can write plugins in Python.
我用gedit。你可以用Python编写插件。
#10
2
Komodo Edit is made on top of Mozilla's XUL Runner. It offers possibilities for extending it thorough either extensions (like Firefox) or macros, snippets, commands. You may write these snippets in either JavaScript or Python, which is nice, but you still have to know the API in order to do something useful.
Komodo Edit是在Mozilla的XUL Runner之上制作的。它提供了通过扩展(如Firefox)或宏,片段,命令扩展它的可能性。你可以用JavaScript或Python编写这些片段,这很好,但你仍然需要知道API才能做一些有用的事情。
Being built with Mozilla technology it runs on Linux too.
使用Mozilla技术构建它也可以在Linux上运行。
#11
2
It looks like Komodo Edit, SciTE, and Eclipse Monkey are the winners. Komodo Edit seems to be most similar to Ultra Edit. SciTE is something I've used before, and Lua is not that difficult; SciTE's API though does not seem as extensive as Komodo Edit's API. Eclipse Monkey is something I am definitely going to use, but it requires Eclipse, which is definitely not a text editor.
看起来像Komodo Edit,SciTE和Eclipse Monkey是赢家。 Komodo Edit似乎与Ultra Edit最相似。 SciTE是我以前用过的东西,Lua并不那么难;虽然SciTE的API看起来并不像Komodo Edit的API那么广泛。 Eclipse Monkey是我肯定会使用的东西,但它需要Eclipse,它绝对不是文本编辑器。
EDIT: UltraEdit is coming out for Mac and Linux Soon.
编辑:UltraEdit即将推出Mac和Linux。
#12
1
The traditional way for doing scripted text editing in Linux is to use the facilities that have (almost) always been available in *nixes: sed, awk, grep, things of that nature. Sure, they maybe don't appear to be as "handy" as one might find an integrated Javascript engine, but they are very mature and work well. If this scripting language MUST be inside the editor, Emacs is probably a good one here too.
在Linux中进行脚本文本编辑的传统方法是使用(几乎)始终在* nixes中提供的工具:sed,awk,grep,这种性质的东西。当然,他们可能看起来并不像人们可能找到一个集成的Javascript引擎那样“方便”,但它们非常成熟并且运行良好。如果这个脚本语言必须在编辑器中,那么Emacs也可能是一个很好的。
You could use an "integrated" type solution to solve the problem, as lots of others have mentioned, but IMHO the commandline is more powerful in this regard.
您可以使用“集成”类型解决方案来解决问题,正如许多其他人所提到的那样,但恕我直言,命令行在这方面更加强大。
#13
0
SciTE can be scripted with Lua and is a good, simple editor which behaves much the same way if you're switching between Linux and Windows every day.
SciTE可以用Lua编写脚本,是一个很好的,简单的编辑器,如果你每天在Linux和Windows之间切换,它的行为方式大致相同。