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).
62
questions
0
votes
0
answers
35
views
can I have bright colors in vim's highlighting scheme?
When we configure any terminal software (let's say terminator) we define 2 rows of color palette - echo -e "\e[34m blue number 1\n\e[94m blue number 2\e[0m" clearly shows 2 different shades ...
1
vote
0
answers
90
views
gedit ignoring gtksourceview syntax language after updating to 24.04
After updating to 24.04 I no longer had the fish shell syntax highlighting on gedit.
The syntax file is both in /usr/share/gtksourceview-5/language-specs/fish.lang and in /usr/share/gtksourceview-4/...
0
votes
0
answers
868
views
.conf file syntax highlighting on neovim
I am using Neovim 8.0. previously I used nano, which had syntax highlighting for .conf files. But in neovim there is treesitter for popular languages. I don't know if there are any option for .conf ...
0
votes
0
answers
433
views
Highlight TODO and other keywords in the Text Editor (gedit) isn't working
I'm using the Text Editor (gedit) for couple months.
I have downloaded the inkpot theme because it seems good.
https://gist.github.com/carmelom/14e74271d4c03f3028f0e050be0e7f0a
The problem is, it's ...
2
votes
0
answers
429
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
0
answers
254
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 ...
3
votes
1
answer
856
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
1
answer
150
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 ...
1
vote
1
answer
3k
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
1
answer
954
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
1
answer
650
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
2
answers
739
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 ...
4
votes
1
answer
3k
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
2
answers
792
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
0
answers
555
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
1
answer
234
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
1
answer
1k
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
1
answer
1k
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
1
answer
190
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 ...
4
votes
1
answer
1k
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
1
answer
13k
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
1
answer
98
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), ...
0
votes
1
answer
356
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
1
answer
10k
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
1
answer
603
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
0
answers
504
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
0
answers
499
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
1
answer
771
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
1
answer
500
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
...
2
votes
0
answers
1k
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
1
answer
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
0
answers
282
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 ....
4
votes
1
answer
2k
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?
2
votes
3
answers
7k
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
1
answer
500
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
1
answer
352
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
1
answer
4k
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....
2
votes
2
answers
346
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
2
answers
2k
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
2
answers
108
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
1
answer
1k
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
1
answer
6k
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 ...
9
votes
1
answer
7k
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
1
answer
1k
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
1
answer
776
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 ...
6
votes
3
answers
18k
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 ...
5
votes
2
answers
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.
5
votes
2
answers
2k
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 ...
13
votes
1
answer
5k
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
1
answer
323
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 ...