Questions tagged [syntax-highlighting]
The syntax-highlighting tag has no summary.
97 questions
0
votes
0
answers
17
views
Nvim syntax highlighting disabled by screen command [duplicate]
When I open up neovim on my raspbian device the syntax highlighting works perfectly well. As soon as I use the screen command (to create a multi-paned setup) nvim becomes black and white. Colors ...
0
votes
0
answers
68
views
How can I Colorize my custom .bashrc file w/ nano in shell
im using an arch linux variant with xfce, opening up a terminal shell and running sudo nano .bashrc I can see the file is colorized despite there being no headers referencing a schema.
Looking inside ...
1
vote
0
answers
30
views
.jsf (JOE editor) syntax highlighting for todo.txt
I can't get the JOE editor to highlight tags like due:YYYY-MM-TT for due dates or rec:NP for recurrences to work; I was able to highlight prioritized tasks though.
A sample todo.txt looks like this:
...
0
votes
2
answers
122
views
gtksourceview: syntax highlight for language groff in gedit
Sciancisco and I developed a syntax highlighter for the Groff markup language to be used with Gedit, Pluma, Xed etc. I installed it in /usr/share/gtksourceview-4/language-specs/groff.lang and it ...
1
vote
1
answer
123
views
What's overriding my .vimrc tabstop size setting for CMake files?
In my ~/.vim/vimrc, I have:
set shiftwidth=4
set tabstop=4
and when I edit a plain text file, that is respected. However, when I edit a CMake file - these both becomes 8. I tried looking for the ...
0
votes
2
answers
1k
views
How do I get rid of this leading space highlighting in Nano (Ubuntu)?
Here's an image:
Every time I type something with a leading tab, I get this obnoxious green/teal background until I type a value in for that line.
Also, for some reason on line 27, the color I ...
0
votes
1
answer
109
views
nano unhighlight string if a quote is escaped
I'm trying to unhighlight string if one of the quotes is escaped.
sh.nanorc regex is as follows:
color brightyellow ""(\\.|[^"])*""
I'm having success with the closing quote ...
0
votes
1
answer
396
views
Any 'cat' colorized tool? [duplicate]
I sometimes cat a c file or a JSON file, there is no colorful format text.
Is there any command line tool that can show colorful format text as it is in ex: gedit?
0
votes
1
answer
782
views
Terminal is losing the blink and is not showing text after using (batcat)
So, I used batcat to syntax highlight a file in the terminal. After I close it through Ctrl + C, my cursor stops blinking and I cant see the text I type in my terminal.
Error
0
votes
1
answer
256
views
Vim color problem
I've a strange problem with vim editor:
if i write a simple text, all is normal, white text
If i add shebang, save and exit...reopen and ..color change after first line!
:(( Can you help me?!
Thanks ...
0
votes
1
answer
174
views
nano highlighting fails in matching shell array brackets
The last two array expansions don't get proper highlighting:
This is the setting in sh.nanorc that defines it:
# More complicated variable names; handles braces and replacements and arrays.
color ...
-1
votes
2
answers
322
views
How to enable the highlighting of the file "/etc/login.defs" on Ubuntu?
When I open the file /etc/login.defs on a RHEL 8.3 system, it looks like this:
As you can see, it highlights the content. But when I open the same file in a Ubuntu 20.04 system, there is no ...
0
votes
0
answers
115
views
Export nano's syntax highlighting
I like how nano highlights bash scripts and I often use GNOME terminal's "Copy as HTML" option to copy/paste the color highlights to LibreOffice when writing documentation. That works fine ...
1
vote
0
answers
170
views
Color filenames according to $LS_COLORS in vim
I'm writing a simple vim syntax file for random note takings for work.
I would like to color filenames according to $LS_COLORS. I can prefix a filename in the notes file with something random, like '·'...
1
vote
0
answers
188
views
VIM run hardcopy commands on file ALREADY OPENED by another VIM
I adopted printing solution from https://unix.stackexchange.com/a/20448/9689 :
vim -c 'hardcopy > /path/to/saved.ps' -c 'quit' /path/to/file
Problem is, when I have this file opened in VIM and I ...