Sublime-GenericConfig adds syntax highlighting of the configuration files to Sublime Text 2 and Sublime Text 3.
It aims to provide generic highlighting for files which are not supported by other plugins (for example ini files, nginx config).
This plugin may be used for a wide range of configuration files because highlighting is based on common syntax constructions.
NOTE: 0.0.6
is last version for Sublime Text 2.
- Download & Install
Sublime Text 3
(https://www.sublimetext.com/3) - Go to the menu
Tools -> Install Package Control
, then, wait few seconds until the installation finishes up - Now,
Go to the menu
Preferences -> Package Control
- Type
Add Channel
on the opened quick panel and press Enter - Then,
input the following address and press Enter
https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json
- Go to the menu
Tools -> Command Palette... (Ctrl+Shift+P)
- Type
Preferences: Package Control Settings – User
on the opened quick panel and press Enter - Then,
find the following setting on your
Package Control.sublime-settings
file:"channels": [ "https://packagecontrol.io/channel_v3.json", "https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json", ],
- And,
change it to the following, i.e.,
put the
https://raw.githubusercontent...
line as first:"channels": [ "https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json", "https://packagecontrol.io/channel_v3.json", ],
- The
https://raw.githubusercontent...
line must to be added before thehttps://packagecontrol.io...
one, otherwise, you will not install this forked version of the package, but the original available on the Package Control default channelhttps://packagecontrol.io...
- The
- Now,
go to the menu
Preferences -> Package Control
- Type
Install Package
on the opened quick panel and press Enter - Then,
search for
GenericConfig
and press Enter
See also:
- ITE - Integrated Toolset Environment
- Package control docs for details.
- One line comments (
#
,//
,--
and;
) - Numbers, hex values, numbers with units (
12M
,10kHz
etc) - Color (
#ccc
,#12ccff
etc) - Common constants (
true
/false
,yes
/no
etc) - Strings (single quotes and double quoted)
- Sections (
[name]
,<name>
,name { ... }
) - Key-value constructions (
key = value
,key: value
,key value ...
) - Variables (
$name
,%name
,%name%
,${name}
and few others) - Uppercase names (
SOME_NAME
) - URL-like strings (
http://name.org
,some://name:port/path
) - RegEx-like strings (
^...$
) - Common operators (
+
,-
etc) - Mime-like strings (
image/gif
,multipart/form-data
etc) - Function call (
name()
)