开发者

Github syntax highlight style scheme for Gedit?

I like the syntax highlight style scheme used for R scripts in github and I would like to get it to my gedit editor. Where 开发者_JAVA百科could I get it?


The easiest way to get R syntax highlighting in Gedit is the RGedit add-on: http://sourceforge.net/projects/rgedit/

RGedit also allows executing R code from within Gedit, which is very handy.

Here's a screenshot of how I have my RGedit set up. I use a custom color pallet but you could alter the color scheme to look more like Github:

Github syntax highlight style scheme for Gedit?

The lower pane is the R session (black on white) and the upper pane is the text editor (color on black).


gedit doesn't seem to have much in "syntax highlighting plugins":

  • Smart Highlighting gedit
  • QuickHighlightMode

Both doesn't support easily any language definition.

Maybe another editor (like bluefish for instance) would be more appropriate.


It seems that both existing answers are outdated, although the RGedit plugin JD Long mentioned still works. It looks like the last update was from almost a year ago, and there might be some problems with the latest version of gedit; however, I installed the plugin and it seemed to work without following the instructions in the forum (I'm running on Xubuntu 14.04).

However, for syntax highlighting (like the OP requested) - you don't have to do anything special. Today Gedit comes with syntax highlighting for many languages out-of-the-box, and one of them is R. If it doesn't detect R automatically (based on mime type or extension) then you can manually set the syntax highlighting scheme by clicking on the file type on the bottom right of the screen, where it says plain text or by choosing View -> Highlight Mode from the menu.

Github syntax highlight style scheme for Gedit?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜