The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [syntax-highlighting]

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).

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

How to modify the formatting options for a single <keyword> in a syntax highliting definition for GEdit?

What I have done I made the following language definition for GEdit, an XML dialect aimed to keep the log of measurements. I made it as a modification of the DocBook language definition. File: lcs....
2
votes
1answer
60 views

KDevelop and custom syntax coloring

I am currently trying out KDevelop 5.2.1 for a C++ project on Ubuntu 18 and so far, everything is working as expected, except syntax coloring. I have not been able to personalize it the way I want. ...
2
votes
1answer
77 views

How can I add Markdown syntax highligting to Pluma in 16.04 LTS?

I'm using Pluma on Ubuntu MATE 16.04 LTS and I see that it does not support syntax highlighting for Markdown lightweight markup language. But I know that Ubuntu 18.04 LTS (and newer versions) have ...
-1
votes
2answers
215 views

Simple text editor for Ubuntu that has proper syntax highlighting for PostgreSQL

Is there a simple, small, fast text editor (like Gedit) for Ubuntu that has very good syntax highlighting for PostgreSQL? Don't suggest something you haven't used. I tested Gedit, Atom, and pgAdmin 4 ...
0
votes
0answers
18 views

Gedit latex random hightlighting problem

In gedit 3.28.1 in Ubuntu 18.04, I have syntax highlighting random problem :
2
votes
1answer
706 views

How to add support of scala syntax highlighting in VIM?

How to configure VIM to be able to highlight scala language (.scala files extension)? Current VIM configuration (.vimrc file): :syntax on
1
vote
2answers
231 views

Disable syntax highlighting in Geany

I am trying to turn off syntax highlighting in Geany. I tried commenting this out in filetype_extensions.conf. Sh=*.sh;configure;configure.in; As a temporary fix, I changed file extension of files ...
0
votes
0answers
166 views

How to turn on gnome-sushi syntax highlighting?

I have seen several screenshots with syntax highlighting, but mine doesn't work. I couldn't find any related settings in the dconf editor. How can I enable it? (I'm on Ubuntu 16.04, sushi installed ...
0
votes
1answer
154 views

IntelliJ syntax highlighting for PHP

I installed IntelliJ IDEA on Ubuntu 16.04 to use Symfony. There is syntax highlighting for .yml files, but there is no syntax highlighting for .php files. How to add syntax highlighting for .php files ...
1
vote
1answer
305 views

Create PostScript file from vim

How can I open a script file and automatic create the PostScript file? Now I use: vim file.py and inside :ha > text.ps. The problem is that the command have to go inside a bash script. How can I ...
2
votes
1answer
366 views

How to change the path to the folder of the XML syntax files? (gedit)

Any clue about the variable to be changed in order for gedit to read XML files in another folder? Currently syntax files are in: /usr/share/gtksourceview-2.0/language-specs I'd like gedit to read ...
0
votes
1answer
73 views

How to enable syntax highlighting in vi while using the global command?

Opening a file with vi nicely highlights its contents. However, I want to view the file with all lines containing clock_gettime hidden. By using the global command :g!/clock_gettime I get the ...
3
votes
1answer
464 views

How can I tell Gedit which syntax highlighting to apply?

For some godforsaken reason, Twig files in our source code are saved with a .html extension, instead of a .twig extension. I followed guidelines to add custom highlighting to Gedit, and the Twig ...
2
votes
1answer
8k views

How to change syntax color in vim? [duplicate]

I have Ubuntu 16.04 LTS. But vim is not showing the proper syntax colors and also the mode in which you are like insert mode. So can anyone help me how to solve the issue?
0
votes
1answer
73 views

gnome-terminal highlight URLs ending in close-paren

When gnome-terminal 3.6.2 highlights a URL ending in ), it incorrectly omits that ). Such URLs are found in wikis with disambiguation pages, such as http://zelda.gamepedia.com/Ocarina_of_Time_(Item), ...
-1
votes
1answer
154 views

Pastebin Terminal Syntax

Just curious: If I'm pasting the output of some terminal processes—like the various commands one goes through to make and install a certain driver or application—into the Ubuntu Pastebin, what syntax ...
5
votes
1answer
5k views

Syntax Highlighting vi editor [duplicate]

How to enable syntax highlighting features in vi editor ? I am currently using ubuntu 16.10. Here is the output of vi --version. VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 22:32:42) ...
7
votes
1answer
522 views

Swift syntax highlighting in gedit?

I do not see an option for Swift highlighting in the gedit language menu. How can I get gedit to highlight Swift code for me?
2
votes
0answers
250 views

Colored syntax and terminal when using SSH from terminal

Ok. So I use pico as a text editor. In ubuntu and when I ssh using putty I have colored syntax and colored terminals. When I ssh through ubuntu terminal I have solid white text. I always ssh into my ...
1
vote
0answers
390 views

syntax highlighting in vi changed after upgrading Ubuntu 16.04

First, read this question below: problem in terminal syntax highlighting It also changed the default syntax highlighting in terminal after upgrading UBUNTU. There is a difference between ver.14 and ...
1
vote
0answers
80 views

Custom syntax highlighting misbehaving in gedit

I'm creating a custom syntax highlighter for a markup-like language that I created to accomplish some natural language manipulation stuff, so I thought I'd get started with the simple keywords, seeing ...
1
vote
1answer
552 views

How can I print PHP syntax highlighting on a colour printer?

This must have been answered before, but I simply cannot find the answer either here or elsewhere. I edit a PHP file in gedit, which is all nicely coloured for syntax. But when I want to print it, ...
1
vote
1answer
240 views

vim syntax highlighting ubuntu touch

I'm trying to get syntax highlighting working while using vim. :version gives me: "Small version without GUI". I installed both "vim-gui-common" and "vim-runtime", but everytime I issue the command ...
1
vote
0answers
495 views

Is there a way to highlight a specific word in terminal?

I am using two switches that are very similar and I would like to colour each switch in a different colour. So that any time that I will write in the command line that word - it will automatic ...
0
votes
1answer
667 views

Nano not highlighting syntax anymore

So I along with a few others are planning to start a company, and we are using an ubuntu server to host our website. Originally we put it on an old laptop and installed Ubuntu server 15.10. Now it is ...
1
vote
0answers
141 views

How to add global syntax highlight in nano

I use nano as my text editor for development, so I would want trailing spaces to be highlighted. Right now I am just adding the line: color ,green "[[:space:]]+$" to all the files included on my ....
3
votes
1answer
819 views

Highlight search results in GNOME Terminal?

Is there a way/plugin to highlight the searched strings in GNOME Terminal on Ubuntu (When using Ctrl+F or similar keys)? Not just a single result, but all which appear inside the window?
1
vote
3answers
4k views

Enable syntax coloring in Geany?

Online all the examples for Geany have syntax coloring, but I couldn't figure out how to enable this feature. I downloaded Geany, then created a new python file, but whenever as I type a keyword, ...
2
votes
1answer
355 views

gedit highlighting “ CISCO IOS” can't find one

daily i 'm using gedit in order to configure Cisco devices is there someone who created a cisco highlighting language ??? can't find one .... and it is a loooong way creating one from scratch....
1
vote
1answer
235 views

Gedit PHP syntax highlighting

Does anyone know how to fix this issue? I have PHP inline to HTML. There's an opening quotation and the inline PHP also has a quote, but Gedit thinks it's the closing quote for the HTML. Add this to ...
3
votes
1answer
2k views

How do I get terminator to use syntax highlighting?

When sifting through large amounts of input and output in my terminal emulator (terminator in this case) it would come in handy if I had some syntax highlighting available to make things more readable....
0
votes
1answer
237 views

How to make geany or vi understand Maxima (or any other less known) syntax

I tend to program a lot in a symbolic language called Maxima, but I haven't found any editor that highlights its syntax. Is there I way I can make vi or geany (or whatever) understand this syntax and ...
4
votes
2answers
974 views

Creating Highlighted PDF from JSON

I have a JSON file and would like to create a pdf containing the pretty printed and syntax highlighted version of that JSON file. Is there any way to do that in Ubuntu?
0
votes
2answers
43 views

No Syntax Highlighting in Ubuntu SDK

I just installed Ubuntu SDK. But files open without syntax highlighting in general. Is there something missing? I use the common Text Editor. Do I need to install a further package that makes the ...
2
votes
1answer
724 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), ...
1
vote
1answer
4k 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 ...
8
votes
1answer
5k 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, ...
2
votes
1answer
789 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
635 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 ...
4
votes
2answers
13k 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 ...
4
votes
2answers
2k 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.
10
votes
1answer
4k 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
316 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
261 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 ...
4
votes
1answer
1k 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?
4
votes
1answer
5k 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 ...
3
votes
2answers
190 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
2k 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 ~/.ssh/...
185
votes
13answers
262k 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.
19
votes
2answers
29k views

How do I add a syntax highlighter format to Gedit?

How can I add in the regular expressions for an additional syntax language?