http://grigio.org/textmate_gedit_few_steps
Textmate-like Gedit in few steps
UPDATE: A !! new version !! of this guide is avalaible.
UPDATE: This guide was for gedit 2.18.x, please upgrade to gedit 2.20.x to have an easier color scheme managing. Textmate is really a great text-editor (almost an IDE but faster), it has even the support for latest Ruby/Rails technologies like RSpec. On the GNU/Linux side there are also similar full-featured text editor and one is Gedit.
Gedit can be extended by plugins written in C or in Python, here is a tutorial how to set up a Textmate-like Gedit.
Syntax highlight for RHTML, RJS
By default Gedit supports a lot of languages php, C#, java,.. and Ruby, but Ruby embedded. To enable the sintax highlight in HTML files with embedded ruby code (.rhtml) you have to add 2 files (Thanks to Bitsbam).
From the terminal:
$ wget http://grigio.org/files/x-rhtml.xml; sudo mv x-rhtml.xml /usr/share/mime/packages
$ wget http://grigio.org/files/rhtml.lang; sudo mv rhtml.lang /usr/share/gtksourceview-1.0/language-specs/
Select the plugin you need
The list of the plugins avalaible is growing fast; this is a list of plugins that work well each other.
Snippets: it permits to call structures of code easly and everytime you press TAB the cursor automatically jumps to the right position
Snap Open: it opens the files that contains the word you are typing
File Browser: a treeview of the files in the current directory
Word completion: it complete the word while you are typing and with TAB you select it
Class Browser: a list with all the methods in the current file
Quick Highlight Mode: very useful to specify quickly the syntax mode
Interesting resources
All the plugins are avalaible from the GNOME Wiki.
If you want User-defined syntax color, snippets, .. you can download them from here
UPDATE: My color scheme is here (It's ONLY for gedit 2.18.x), uncompress it in $HOME/.gconf/apps/gedit-2/preferences/syntax_highlighting and restart the session. Be sure that the folder exists and that your previos files are overwritten.
If you wan to pass HP0-J25 exam with promising success, check out our latest collection of braindump prepared by certified experts plus get free sample questions for 1Y0-A08.
分享到:
相关推荐
标题所涉及的知识点为《NOI Linux的使用系列》,其中NOI指的是全国青少年信息学奥林匹克竞赛(National Olympiad in Informatics in Provinces)。Linux是一个开源的类Unix操作系统,它以其稳定性和安全性在全球范围...
gedit是Linux系统中的一个图形化文本编辑器,对于不熟悉命令行界面的人来说,它提供了一个友好的界面来编写和编辑文本文件。在终端中,你可以通过输入`gedit`命令来启动gedit。在本案例中,我们将使用gedit创建一个...
过程: ...$ sudo gedit /etc/X11/xorg.conf 这个命令使系统以root权限打开鼠标配置文件/etc/X11/xorg.conf.把文件中的 Option "Protocol" "ps/2" 改成 Option "Protocol" "IMPS/2" 重启Ubuntu搞定
原创资源 1.Changing su password... 2.1type in:gedit,Then use GUI 2.2type in:mkdir , you create a file document 2.3tyoe in:touch , you create a file 3.File Directory:... ... 5.Terminate a process:...
10. **网络编程**:利用`<sys/socket.h>`和`<netinet/in.h>`等头文件,可以实现TCP/IP和UDP的网络通信。关键函数包括`socket`, `bind`, `listen`, `accept`, `connect`, `send`, `recv`等。 11. **错误处理**:...
9. **配置环境变量**:在主目录下,右键选择“Terminal”,运行`gedit .bashrc`(或在其他目录下运行`gedit ~/.bashrc`)。在文件末尾添加以下环境变量设置,确保替换正确的文件路径: ``` export PATH="/home/...
gedit syslog 或者直接 dmesg 打开系统日志之后发现每次重启之前都会出现很多 EXT4-fs error (device sda1): ext4_lookup:1593: inode #6004222: comm trash-expunge: deleted inode referenced: 6004301 类似...
// Wait for a keystroke in the window return 0; } ``` 编译并运行这个程序,如果一切正常,应该能看到图像显示窗口。 #### 五、总结 通过本文介绍的方法,我们可以在Linux环境下成功安装和配置OpenCV,并且...
在本文中,我们将探讨一个与Linux系统中软件依赖和库版本相关的问题,特别是关于gedit文本编辑器在Ubuntu 16.04上遇到的"symbol lookup error"。该问题通常发生在尝试执行gedit或某些其他应用程序时,由于库文件不...
- `shutdown [参数] 时间 [警告消息]`:按照指定的时间或立即执行关机或重启,如`shutdown -r+5 "System will reboot in 5 minutes, Please save your work!"`。 2. **文件和目录操作**: - `ll`:列出当前目录下...
NOI Linux是一种专为信息学奥林匹克竞赛(National Olympiad in Informatics,简称NOI)定制的Linux操作系统,旨在为竞赛提供统一、稳定的开发和运行环境。本系列文章将全面介绍NOI Linux的安装和使用方法,适合参加...
3. 设置路径:gedit /etc/profile 在最后一行加上 export PATH=$PATH:/root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin:$HOME/:$PATH 四、编译 U-Boot 使用以下命令编译 U-Boot: 1. source...
使用 gedit 命令打开 ~/.profile 文件,并在文件最后添加以下环境变量: ``` export PATH=$PATH:/home/usr/local/arm/4.3.2/bin ``` 然后,执行以下命令以生效环境变量: ``` source ~/.profile ``` 五、验证编译器...
- 创建启动脚本:创建一个启动Eclipse的快捷方式,可以在终端输入`sudo gedit /usr/local/bin/eclipse`,然后添加执行路径。 - 权限:赋予脚本执行权限,如`chmod +x /usr/local/bin/eclipse`。 - 启动:通过终端...
in Linux - Gedit, in Windows - Notepad. 鼠标动作不包括在内。 支持的符号列表: 1234567890 abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ 在Linux中也支持这些...
这个“all in one”包包含了ns-2.30、Tcl、Tk以及OTcl等相关依赖。 以root权限登录到你的Linux系统,并在/home目录下创建一个名为ns2的新目录。将下载的ns-allinone-2.30.tar.gz文件移动到这个目录中。然后,打开...
4. **命令行操作**:在Linux环境中,所有的操作都可以通过命令行完成,包括编辑配置文件(如使用`vi`, `nano`或`gedit`),运行程序,查看网络状态等。 5. **网络连接诊断**:如果无法成功连接,可以使用`ifconfig`...
1. **查看和编辑XML文件**:Linux提供了许多文本编辑器,如`nano`、`vi/vim`或`gedit`,可以用来查看和编辑XML配置文件。首先,你需要用这些编辑器打开文件,如`vi WXL`,确保文件内容符合XML语法。 2. **验证XML...
gconf-editor-2.22.0-1.fc9.i386.rpm ...在右边的auto_detected和shown_in_menu上点右键编辑,点add,分别加入GB2312(或者是GB18030),并点UP按钮移动到第一位。关闭,就可以在gedit中显示中文了。
case "$1" in start) echo -n "Starting Oracle: " su - $ORA_OWNR -c "$ORACLE_HOME/bin/dbstart" touch /var/lock/oracle su - $ORA_OWNR -c "$ORACLE_HOME/bin/emctl start dbconsole" su - $ORA_OWNR -c ...