gedit in linux

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.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值