Sublime Forum

How do you set highlighting for specific file extensions?

#1

Hi so I use cygwin a lot, and that means that I edit shell scripts all the time.

For some reason sublime won’t highlight my .bashrc etc files. How can I set it so that it automatically picks the ‘shell script’ highlighting settings when the file is not recognized?

On that same line of thought, is it possible to set sublime so that the default CR/LF of files is Unix, not windows?

Thanks!

0 Likes

#2

First question…


Second…
Preferences > User FIle Preferences

[code]# Determines what character(s) are used to terminate each line in new files.

Valid values are ‘system’ (whatever the OS uses), ‘windows’ (CRLF) and

‘unix’ (LF only).

defaultLineEnding system[/code]

:smile:

0 Likes