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
46 views

How to set the Terminal's format style for the Text Editor?

I copy commands and their output from Terminal to text files. I would like to see the same styling on the copied text as I see it in the Terminal when I open such a file in Text Editor. I tried a few ...
1
vote
0answers
39 views

What's up with Gedit's HTML highlighting?

I've been learning some HTML code recently, and something weird is up with Gedit's highlighting. Whenever I try to use the <h3> tag, Gedit immediately cancels all the highlighting and the text ...
0
votes
0answers
19 views

Difficult to choose a good Pluma syntax highlighting option for simple documentation. Help please?

I want to write some really simple notes to myself about some code I am writing. Actually, it would be sufficient just to put e.g. [CODE]...[/CODE] brackets round bits of quoted code so that it ...
0
votes
0answers
58 views

Is there a public repository for GtkSourceView language definition files, for language version 2.0?

I'm using a version of Gedit that uses GtkSourceView 4.0, which requires language definitions to be 2.0, like this: However, I don't have a language definition file for assembly that's version 2.0. ...
0
votes
0answers
71 views

HAML and SASS support in Geany

I'm trying to get SASS and HAML highlighting support in Geany. I don't see any plugin to add this, and I'm not sure how to create a custom language file to accomplish this. I see that Geany is based ...
2
votes
0answers
157 views

In Nano is there a way to have nanorc settings apply to just one filetype/syntax?

Background: To enable Nano's syntax highlighting I have configured various shared .nanorc files with the format /usr/share/nano/*.nanorc, eg /usr/share/nano/python.nanorc This works well but I keep ...
0
votes
0answers
13 views

Are there any frequently pre-loaded editors on Ubuntu, which natively support x86 Intel assembly syntax highlight?

This would be nice, as I will need it for exams. However I can not tell exactly which applications will be pre-installed, because we use VMs at University and during exams we can only launch an ...
0
votes
1answer
71 views

Forcing gedit to recognize .kv files

On Ubuntu, the language that defines syntax highlighting for kivy layout files is installed by default (or added automatically when installing kivy). The problem is, in gedit, I have to manually ...
0
votes
1answer
497 views

Gedit bash highlight

When I edit bash script(first line is #!/bin/bash) in GEdit, there is no highlighting. But with View->Highlight Mode, there is no result when searching "bash" or "script", which to choose?
2
votes
1answer
350 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
274 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
321 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 ...
2
votes
1answer
2k 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
402 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
297 views

How do I 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
188 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
515 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
600 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
101 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
773 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 ...
3
votes
1answer
11k 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
79 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
201 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 ...
6
votes
1answer
7k 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
572 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
269 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
446 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
90 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
656 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
309 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
681 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
1k 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
178 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
1k 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
5k 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
396 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
257 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
275 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
1k 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
48 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
845 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
5k 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
6k 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
890 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
690 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 ...
5
votes
3answers
15k 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
3k 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.
4
votes
2answers
1k views

Syntax highlighting with less, trouble with lexer

I have installed python-pygments and using it for syntax highlighting with less as described by mankoff here I put a function in my .bashrc cless () { pygmentize -f terminal "$1" | less -R } it ...
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 ...