有谁知道如何让ee编辑器能够突出语法?
我看到设置似乎没有语法高亮功能,但vi或vim对我来说太复杂了......
感谢
答案 0 :(得分:5)
ee不支持语法突出显示。你可能想看看nano(来自ports collection editors / nano)这是一个易于使用的语法高亮编辑器。
有关纳米语法突出显示的更多信息,请参阅https://askubuntu.com/questions/90013/syntax-highlighting-on-nano
答案 1 :(得分:1)
您也可以使用Emacs作为控制台文本编辑器,您可以使用端口
进行安装editors / emacs或没有X11接口(用于服务器),更轻,端口:编辑器/ emacs-nox11
Emacs使用与首选shell,bash或ZSh相同的绑定,实际上shell使用与emacs相同的绑定。
Emacs更像是ee或nano,关于键盘的快捷方式,但更强大,可配置,可编写脚本。
答案 2 :(得分: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"