Tagged Questions

Questions about the feature of syntax-highlighting (where code structure is made visually prominent) in software such as text-editors and integrated development environments (ide).

learn more… | top users | synonyms

2
votes
1answer
38 views

Vi syntax highlighting for words followed by a parenthesis

I want to change the color of a keyword that is followed by a left parenthesis in a .R file. For instance, when I type length(), I want the word length to be highlighted (and not the parentheses), ...
0
votes
0answers
32 views

Gedit crashes due to highlight mode

I recently started to have a problem with gedit in Ubuntu. If I try to open a file where the metadata selects a highlight mode, it crashes. I can open files in plain text, but if I try to select a ...
1
vote
1answer
118 views

Change color scheme in Kate

I'm looking to change the color scheme in Kate to something else (e.g Solarized, Zenburn, etc). I tried the instructions found in Using “Oblivion” color scheme from Gedit in Kate, but nothing changed ...
2
votes
1answer
90 views

Create a custom syntax highlight in gedit

Following my question from long ago, I am still trying to tweak my fortune handling capabilities. The display in terminal is awesome, just one thing remains - syntax highlighting in Gedit as I add, ...
1
vote
1answer
95 views

Why does Vim highlight Javadoc comments like this?

I am using vim to edit Java code. I added a Javadoc header above the class definition, but the syntax highlighting is very strange: read the Javadoc comment above Why is the first sentence ...
0
votes
1answer
91 views

Is there a way to get Smarty syntax highlight in gedit?

I'm using smarty to develop a website and I need syntax highlighting. Currently gedit only highlights the html. Since my tpl files contains only html and smarty template functions. I've Google'd for ...
0
votes
1answer
730 views

How to set nano default syntax highlighting for files with no extension?

I'm trying to set a 'default' syntax highlighting scheme for nano when I'm editing files with no extension such as /etc/nginx/sites-available/default or /etc/ssh/sshd_config but I can't seem to make ...
2
votes
2answers
323 views

How to use pygmentize automatically with less [duplicate]

I found pygmentize thanks to this answer, but it would be great if it could be used to highlight text with less or maybe replace the command. Is there a way to do that? Thanks in advance.
3
votes
1answer
802 views

How to change the default highlighting of gedit for a specific extension

Everytime I open a .m file, gedit associates Octave highlighting to it. I would like to change the default behavior to Matlab. How can I, in general, change the default highlighting that gedit gives ...
0
votes
1answer
68 views

my mini project [closed]

I am doing my mini project in Ubuntu. Its actually a text editor like Gedit. I am done with basic elements like cut copy paste delete and save..can I get the source code for bookmarking and syntax ...
1
vote
1answer
137 views

How to highlight Non-consecutive text in Gedit?

Is there any short-cut/keyboard command to highlight, i.e., select, non-consecutive text in gedit? For instance, say I want to highlight the words there and text in the previous sentence at the same ...
3
votes
1answer
333 views

How to get QML syntax highlighting in gedit?

QML files opened with gedit don't have syntax highlighting. Is there a package providing a gtksourceview lang.spec file for QML? If not, has anyone written a lang.spec than can be installed locally?
3
votes
1answer
2k views

How to add a new language definition for syntax highlighting in Gedit?

I've attempted to create a new .lang file for getting Gedit to recognize the Julia programming language. I have read the tutorial, the reference document and the wiki page Gedit/NewLanguage, and I ...
2
votes
2answers
126 views

Is there a graphical pager with syntax highlighting?

Is there a graphical application in the repositories which has keyboard controls like the command-line application "less" and also has syntax highlighting? I would like it to have arrow keys that ...
2
votes
2answers
488 views

VIM does not detect syntax of .ssh/config

On a plain Ubuntu installation (12.04 in my case) when I have no ~/.vimrc VIM does not detect syntax of .ssh/config. Syntax highlighting works, but it does not set the correct filetype. vi ...
39
votes
5answers
43k views

How do I enable syntax highlighting in nano?

Can nano do syntax highlighting like gedit and vim? How can I enable it? I need at least bash and python syntax highlights.
6
votes
2answers
5k views

How do I add a syntax highlighter format to Gedit?

How can I add in the regular expressions for an additional syntax language?
14
votes
3answers
6k views

Can I set a default syntax highlighting in Gedit?

Until you save a document in gedit, syntax highlighting is turned off. There are obviously good reasons for this -- people might get confused if certain words were randomly showing up in different ...
1
vote
1answer
560 views

Is there syntax highlighting for psql?

Is there some setting or package that I could use to give syntax highlighting to psql (the PostgreSQL shell)?
1
vote
0answers
803 views

Gedit thinks everything is an Apache config file [closed]

When I open a text file that does not have the .txt extension, Gedit sets the syntax highlighting to Apache Conf every single time. This only started happening after my upgrade to 11.04. Is there a ...
0
votes
2answers
2k views

How to enable the Code/Syntax highlighting for groovy in VI?

i was using Fedora for about six months. Recently I have been changed to Ubuntu. And here in Ubuntu, there is no Code/Synatax for groovy in VI editor,which was actually there in Fedora VI. How to ...
0
votes
1answer
541 views

Snippet code manager like Snippets? [duplicate]

Possible Duplicate: Code snippet manager for Ubuntu? I'm looking some snippets code manager on Ubuntu like Snippets (for the MAC) with syntax highlighting (html, css, php). Thanks for ...
2
votes
2answers
1k views

Nano syntax highlighting for C# and/or ASP.Net

Has anyone got (or can point in the direction of) a nanorc file that contains syntax highlighting for C# and/or ASP.Net?