https://github.com/facelessuser/sublime-languages
Personal languages and modified languages
https://github.com/facelessuser/sublime-languages
Last synced: 4 months ago
JSON representation
Personal languages and modified languages
- Host: GitHub
- URL: https://github.com/facelessuser/sublime-languages
- Owner: facelessuser
- Created: 2012-02-26T03:14:18.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2016-07-19T22:52:58.000Z (almost 10 years ago)
- Last Synced: 2025-04-04T09:01:41.989Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 379 KB
- Stars: 47
- Watchers: 10
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Language Notes
This is a personal repository for languages I have that override the sublime default ones. Though this repository wasn't meant for public use, all are welcome to use anything found here. You can file issues if you want, but since I don't view this as a supported repo, I will pick and choose what to fix when I feel like it.
## Fixed and Mods
When using these languages, you can disable the default version of the languages in the Preferences.sublime-settings.
Example:
```javascript
"ignored_packages":
[
"Batch File",
"C++",
"Markdown"
],
```
### Batch File
- Add Comment support for comment line shortcut
### C/C++/C++11
- Based off of https://github.com/kodLite/cppStartingKit
- Fix comments that trail some preprocessors like #endif etc.
### JSON
- Scope keys different than values so keys can be colored differently than values.
### CSS
- Fix issue where things like (-moz|-o|-ms|-webkit) items would not highlight.
- (-moz|-o|-ms|-webkit) items and properties
### Markdown (Still more to do)
- Add fenced blocks to MultiMarkdown
- MultiMarkdown is the default
- Added Github Flavored Markdown
- supports fenced blocks
- added strikedown scoping `markup.strikethrough`
- adjusted logic for when bold/italic are highlighted
- emoji scoping for things like `:smile:`. `markup.emoji`
- Fenced blocks support backticks and tilde supported
- Enable wrapping by default
- Added switcher to choose the default markdown style to use
- ~~Import source highlighting for embedded:~~
- ~~python~~
- ~~javascript~~
- ~~json~~
- ~~xml~~
- ~~html~~
- ~~php~~
- ~~css~~
- ~~diff~~
- ~~perl~~
- ~~bash~~
- ~~java~~
- ~~ini~~
- ~~apacheconf~~
- ~~clojure~~
- ~~ruby~~
- ~~applescript~~
- ~~c++/c~~
- ~~c#~~
- ~~markdown (experimental)~~
- ~~batchfile~~
- ~~erlang~~
- ~~(more to come)~~
NOTE: Because embedded fences can some times act funny due to import language scoping being too greedy, embedded syntax highlighting has been removed for the time being and possibly forever.
## Colorizing New Scopes
### To Colorize JSON Keys and Python Dictionary Keys ()
Remove this:
```xml
name
JSON String
scope
meta.structure.dictionary.json string.quoted.double.json
settings
foreground
#CFCFC2
```
Add then add this in its place:
```xml
name
Hash String
scope
meta.structure.dictionary string
settings
foreground
#E6DB74
name
Hash Key String
scope
string.quoted.double.key, meta.structure.dictionary.key string
settings
foreground
#66D9EF
```
### To Colorize Function Calls and To Colorize Non-Built-In Function Calls Differently (In Supported Languages)
Add this to theme file:
```xml
name
Function Call
scope
meta.function-call.generic, meta.function-call.object, meta.function-call.static
settings
fontStyle
foreground
#FF80F4
```
### Different Color Background for Fenced Code Blocks and Inline Raw Blocks (If Desired)
You can tweak your theme to have a subtle or dramatic background difference for fenced blocks etc. Just pick a color that works well for your theme.
```xml
name
Markdown Background
scope
markup.raw.block.markdown, markup.raw.inline.markdown
settings
background
#262626
```
### Highlight Markdown Lists (This is Not Unique to This Package)
I like lists to be highlighted differently. This can be done on the default markdown as well.
```xml
name
Markdown: List
scope
markup.list
settings
foreground
#99CCCC
```
### Highlight Bold, Italic, Strikethrough, Emoji (Github Flavored Only)
```xml
name
Markup: Strikethrough
scope
markup.strikethrough
settings
foreground
#CC99CC
name
Markdown: Bold
scope
markup.bold
settings
fontStyle
bold
foreground
#CC99CC
name
Markup: Italic
scope
markup.italic
settings
fontStyle
italic
foreground
#CC99CC
name
Markup: Emoji
scope
markup.emoji
settings
background
fontStyle
foreground
#F2777A
```