The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
20 views

Gedit highlight shortcut

When I open Gedit in my Linux Mint 17 Cinnamon 64-bit, the syntax highlight is off by default. I can then activate it via the menu, or by saving my file with the correct file extension (e.g., every ...
1
vote
0answers
77 views

Highlight linux shell commands

I have a log of new commands I use and my own tips/descriptions with them inside a text file. I noticed there is DOS Batch code highlighting which highlights DOS commands. Is there one for Linux ...
0
votes
1answer
40 views

Location of colorscheme-files in Kate

In Kate one can export file Fortran.katehlcolor which store the information about color in syntax-highlighting. The syntax-highlighting files itself are located in ~/.kde/share/apps/katepart/syntax ...
0
votes
1answer
77 views

How to change default syntax-highlighting for header-file in Kate

Often I have to open header-files (with ending .h) in Kate. The default syntax-highlighting with which these files will be opened is always C++. How could this be changed to Fortran so that I don't ...
5
votes
1answer
375 views

How is `vi` Aware of the Format of Configuration Files?

When I edit configuration files in vi, it seems like vi is aware of the syntax of the file. For example, vi will color tokens one way or another depending on whether its a key or a value. ...
1
vote
1answer
119 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
0answers
116 views

AsciiDoc syntax highlighting plugin for Kate?

I'm looking for a way to add AsciiDoc syntax highlighting to the Kate editor. I haven't found anything yet, but I feel sure some solution exists because AsciiDoc appears to be very popular (and is ...
2
votes
1answer
40 views

How do I stop emacs from colouring the text of the file I am editing?

How do I stop emacs from colouring the text of the file I am editing? I want everything just in plain white. I know that I can load themes, but it's not obvious which theme does what. Can I just ...
1
vote
1answer
484 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 ...
4
votes
2answers
102 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?
0
votes
1answer
131 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 ...
1
vote
1answer
154 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 ...
3
votes
2answers
114 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 ...
0
votes
0answers
38 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
143 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 ...
3
votes
0answers
332 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 ...
2
votes
4answers
1k 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 ...
2
votes
1answer
802 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
174 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" ...
3
votes
1answer
142 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 ...
1
vote
1answer
419 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 ...
4
votes
1answer
499 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.' ...
6
votes
1answer
280 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.
7
votes
2answers
2k 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 ...
1
vote
0answers
299 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> ...
12
votes
2answers
588 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 ...
0
votes
2answers
500 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.
6
votes
3answers
842 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 ...
1
vote
1answer
212 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 ...
5
votes
2answers
3k views

Why can't vim find syntax.vim on my fresh Ubuntu installation?

I'm trying to make some basic customizations to vim. All I want is some syntax highlighting, etc. Basically, not just plain text. My .vimrc file consists of 7 lines: backspace=2 syntax on filetype ...
1
vote
2answers
1k 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, ...
11
votes
1answer
20k 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 ...