1

有谁知道如何让 ee 编辑器可以语法高亮?

我看到设置好像没有语法高亮功能,但是vi或者vim对我来说太复杂了...

谢谢

4

3 回答 3

5

ee 不支持语法高亮。你可能想看看 nano(来自 ports collection editors/nano),它是一个易于使用的带有语法高亮的编辑器。

有关纳米语法突出显示的更多信息,请参阅https://askubuntu.com/questions/90013/syntax-highlighting-on-nano

于 2013-03-13T16:13:05.257 回答
1

您也可以使用 Emacs 作为控制台文本编辑器,您可以使用 Ports 安装它

编辑器/emacs 或没有 X11 接口(用于服务器),高度更轻,端口:editors/emacs-nox11

Emacs 使用与您首选的 shell、bash 或 ZSh 相同的绑定,实际上 shell 使用与 emacs 相同的绑定。

Emacs 更像 ee 或 nano,关于键盘快捷键,但功能更强大、可配置、可编写脚本。

于 2013-10-08T08:34:45.580 回答
1

如果您考虑使用 nano,您可能希望在您的用户目录或 /usr/local/etc/nanorc 中为包含此文件的所有用户创建一个文件 .nanorc:

    ## Nanorc files
include "/usr/local/share/nano/nanorc.nanorc"
## C/C++
include "/usr/local/share/nano/c.nanorc"
## HTML
include "/usr/local/share/nano/html.nanorc"
## TeX
include "/usr/local/share/nano/tex.nanorc"
## Quoted emails (under e.g. mutt)
include "/usr/local/share/nano/mutt.nanorc"
## Patch files
include "/usr/local/share/nano/patch.nanorc"
## Manpages
include "/usr/local/share/nano/man.nanorc"
## Groff
include "/usr/local/share/nano/groff.nanorc"
## Perl
include "/usr/local/share/nano/perl.nanorc"
## Python
include "/usr/local/share/nano/python.nanorc"
## Ruby
include "/usr/local/share/nano/ruby.nanorc"
## Java
include "/usr/local/share/nano/java.nanorc"
## Assembler
include "/usr/local/share/nano/asm.nanorc"
## Bourne shell scripts
include "/usr/local/share/nano/sh.nanorc"
## POV-Ray
include "/usr/local/share/nano/pov.nanorc"
于 2014-11-29T12:48:50.550 回答