Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cheat-sh-sublime-plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gaurav Kukreja
cheat-sh-sublime-plugin
Commits
bfd4bba7
Commit
bfd4bba7
authored
Jul 31, 2018
by
Gaurav Kukreja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for languages
parent
bf6dbbc1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
CheatSheet.py
CheatSheet.py
+26
-1
Default.sublime-commands
Default.sublime-commands
+5
-0
No files found.
CheatSheet.py
View file @
bfd4bba7
...
...
@@ -4,7 +4,32 @@ import requests
import
os
import
re
extension_language_dict
=
{
".py"
:
"python"
,
".cpp"
:
"cpp"
,
".c"
:
"c"
,
".sh"
:
"bash"
}
extension_language_dict
=
{
".py"
:
"python"
,
".cpp"
:
"cpp"
,
".hpp"
:
"cpp"
,
".c"
:
"c"
,
".h"
:
"cpp"
,
".sh"
:
"bash"
,
".css"
:
"css"
,
".html"
:
"html"
,
".htm"
:
"html"
,
".xhtml"
:
"html"
,
".jhtml"
:
"html"
,
".jsp"
:
"java"
,
".jspx"
:
"java"
,
".wss"
:
"java"
,
".do"
:
"java"
,
".action"
:
"java"
,
".js"
:
"javascript"
,
".pl"
:
"perl"
,
".php"
:
"php"
,
".php4"
:
"php"
,
".php3"
:
"php"
,
".phtml"
:
"php"
,
".rb"
:
"ruby"
,
".swift"
:
"swift"
,
}
syntaxFile_language_dict
=
{
"Packages/Python/Python.sublime-syntax"
:
"python"
}
...
...
Default.sublime-commands
0 → 100644
View file @
bfd4bba7
[
{ "caption": "Cheat.sh: Cheat with comments", "command": "cheat_sheet" },
{ "caption": "Cheat.sh: Cheat pallete with comments", "command": "cheat_sheet_pallete" },
{ "caption": "Cheat.sh: Cheat without comments", "command": "cheat_sheet" }
]
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment