The tag has no wiki summary.

learn more… | top users | synonyms

11
votes
2answers
493 views

Bash syntax highlighting of subshells

Considering the large amount of questions which turn out to be related to subshells in Bash ("Why doesn't my variable increment in this piped while read loop?"), I just thought it would be very nice ...
10
votes
1answer
17k views

Where to get Kate color schemes?

Does anyone know where one could find some good Kate color schemes for syntax highlighting? The only ones that I found that work fine are zenburn and mdark. Besides those two, I couldn't find ...
7
votes
2answers
1k views

How to make vim apply /var/log/messages syntax highlighting to any file called “messages” or “messages-*”?

I love vim's colorization of /var/log/messages, but it only works for that – the absolute filename. It doesn't work for older rotations of messages (e.g. /var/log/messages-20120610) or for messages ...
6
votes
1answer
225 views

vim: how do I set :match and :2match search results to different colors?

For example, I want something along the lines of: :match search /<div/ guib=Green :match search /<\/div>/ guibf=Blue only that doesn't work.
6
votes
3answers
684 views

emacs syntax highlighting fails on my SSH client

I need to connect to a remote server by SSH to edit some documents. When I work at home, I SSH to the remote server using SSH Secure Shell and open emacs, but it doesn't fully highlight documents as I ...
4
votes
1answer
364 views

Is there a Vim syntax file for ANSI-colored output of CLI apps?

I have quite a lot of Perl scripts which print colored output to the terminal, using Term::ANSIColor. This is the same as when a shell script does e.g. echo -e '\e[1;31mError:\e[0m Your fault.' ...
3
votes
2answers
52 views

Emacs - Changing show-paren-mode Areas

I like show-paren-mode in Emacs, but I would really like to change the highlighting behavior for closing brackets. That is, I want the opening bracket to be highlighted when the point is on the ...
3
votes
1answer
131 views

Syntax highlighting of latex code blocks in ikiwiki

Is it possible to get syntax highlighting for LaTeX code blocks in ikiwiki (just something like it is automatically done in tex.sx)? To avoid misunderstandings: I don't mean math output produced for ...
3
votes
2answers
81 views

Bash Syntax Colouring

I tried the fish shell, and love the fact that it does syntax colouring in the shell itself: Is there some way to do this in bash?
3
votes
0answers
154 views

Customising markdown syntax highlighting in Geany

I'm using Geany 1.23.1 on Lubuntu 13.10. I've copied over filetypes.markdown from /usr/share/geany to ~/.config/geany/filedefs. filetypes.markdown has the following content: # For complete ...
1
vote
3answers
500 views

less command and syntax highlighting

I need to use the less command with the syntax highlighting of the vim command for python, C, bash and other languages. How do I apply syntax highlighting colors according to vim colors for less ...
1
vote
1answer
367 views

Unwanted text highlighting in Vim latex-suite

I have installed vim latex-suite. Whenever I type$$ to get inside math mode, as a side effect, it also highlights the last search term using /exp. What has caused this and how can I avoid this ...
1
vote
2answers
966 views

Filetype not detected

I'm using vim to try a template system named handlebars, and I installed a vim plugin to get some syntax-highlighting for *.handlebars. I can get coloration if I do this : :set filetype=handlebars, ...
1
vote
1answer
40 views

How to give each variable a different color?

Is it possible to have a vim color scheme where each variable is given a unique color? If so, how? This feature would be really helpful when visually scanning code. (I think I saw this feature in ...
1
vote
1answer
377 views

syntax highlighting in vim over ssh

When I ssh from work to the local network, I can turn syntax on in my vim instance and it works. When I go home and ssh in, I turn on syntax highlighting and nothing happens. While at home, if I use ...
1
vote
1answer
132 views

Custom highlighting for gtksourceview not working

I am trying to write my own syntax highlighting for gtksourceview. If it's done it should highlight guitar chords in a text file. This is my unfinished file: <?xml version="1.0" ...
1
vote
1answer
195 views

Vim: VimRepress and Wordpress.com - how to insert code snippets?

I've started using Vim and VimRepress plugin to blog. My blog is on Wordpress.com - so I cannot install plugins etc. A lot of my posts have code snippets in them - and in Markdown syntax, I indent ...
1
vote
1answer
61 views

Change directory for Kate syntax highlighting files

I'm running Standard Debian Wheezy with KDE 4.8.4 and Kate 3.8.4. The Kate text editor's syntax highlighting files are located in: /usr/share/apps/katepart/syntax If I run kde4-config ...
1
vote
1answer
66 views

vim syntax region: How to use strings as start / end patterns?

I want something like this in one of my syntax files: let s:mask1="some chars here" let s:mask2="and some chars here" syntax region MyOwnRegionName start=s:mask1 end=s:mask2 (the idea is to use ...
1
vote
0answers
252 views

Gedit: syntax highlighting of echoing self-closing XHTML tags in JavaScript in PHP

Reproduction: In Gedit, open a new file and manually select the syntax highlighting language (at the bottom right) to PHP. Write some javascript in <script> tags Within the <script> ...
0
votes
1answer
104 views

I need Control loop help -

this is what I figured out in sorting an Array that has already had it's elements declared type int #!/bin/bash #sorting an "predeclared" array typeset -i store BigNum let store=0 BigNum=0 ...
0
votes
2answers
397 views

Vi for Cygwin syntax

How can I make vi in Cygwin highlight the syntax when I open a file by default? I know that I can type in the command "syntax on" but I would prefer to not do this all the time.
0
votes
0answers
37 views

How to `cat` file with syntax highlight? [duplicate]

In my hello.c: /* Hello World program */ #include main() { printf("Hello World"); } How can i cat this file on terminal with syntax highlight?
0
votes
0answers
86 views

What do the terms used in Geany's color schemes mean?

I guess this is not a true Unix & Linux but I'm taking my chance! I'm using Geany 1.23.1 on Lubuntu 13.10. I've downloaded additional color schemes from https://github.com/kugel-/geany-themes ...