From 76dd307a68d408d7a7bde3ba4112db58c399554f Mon Sep 17 00:00:00 2001 From: Jay Gilmore Date: Sat, 25 Apr 2015 09:14:33 -0300 Subject: [PATCH] Added config example to README. Added configuration file example to Readme.md per issue #5 --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 4ee63a6..39bf79a 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,14 @@ Create a file in your `Packages/User` directory called `default_file_type.sublim - `default_new_file_syntax` *(String)* This is the path, relative to the Sublime base directory to the language file you'd like to load as the default. Default value is `"Packages/Java/Java.tmLanguage"` - `use_current_file_syntax` *(Boolean)* Set this to `true` to use the current file's syntax for the new file. If `false`, then the default (above) will always be used. Defauult value is `true` +### Example _default_file_type.sublime-settings_ File ### +Sublime Text preferences are written in JSON format as the following example shows: + + { + "default_new_file_syntax" : "Packages/HTML/HTML.tmLanguage", + "use_current_file_syntax" : false + } + Let me know if you have any problems or feature requests by adding an issue here: https://github.com/spadgos/sublime-DefaultFileType [package_control]: http://wbond.net/sublime_packages/package_control