Home Download Buy Blog Forum Support

How do you set highlighting for specific file extensions?

How do you set highlighting for specific file extensions?

Postby joshuaalan on Sat Jan 09, 2010 12:28 pm

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!
joshuaalan
 
Posts: 4
Joined: Thu Jan 07, 2010 8:52 pm

Re: How do you set highlighting for specific file extensions?

Postby EJ12N on Tue Jan 12, 2010 4:25 pm

First question...
Image

Second...
Preferences > User FIle Preferences

Code: Select all
# 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


:)
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 30 guests