折腾Sublime Text 3

即使是像Win Xp这样的系统也能捣鼓的很好用.
png

透明化

一个插件Transparency
有六个级别, 快捷键是<Ctrl+Shift+1~6>.
有了它就可以进行各种骚操作了, 例如写Markdown文件时直接在背景中预览.

Markdown

使用了插件OmniMarkupPreviewer, 支持MathJax公式, 支持在浏览器中实时预览.
$$
\sum_{d|n}\mu(d)=[n=1]
$$
有一个问题, 需要在插件的用户设置里面加上一句:

1
2
3
4
5
{
"renderer_options-MarkdownRenderer": {
"extensions": ["tables", "fenced_code", "codehilite"]
}
}

还可以直接更改sublime\Data\Packages\OmniMarkupPreviewer\templates\github.tpl文件来更改出现的html的样式, 像css那样.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
%# ---------------------------------- WARNING ----------------------------------
%# Do NOT Modify this template, create a new one for customization
%# It will get overwritten upon update
%# -----------------------------------------------------------------------------
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{filename}}—{{dirname}}</title>
<style>
h1, h2, h3, h4 {
color: #111111;
font-weight: 400;
}
h1, h2, h3, h4, h5{
font-family: "Times New Roman","Source Serif Pro", "思源宋体","wqy-microhei","Source Hans Serif", "思源黑体","PingFang SC", "Microsoft YaHei", "微软雅黑",serif,sans-serif;
margin-bottom: 15px;
padding: 0;
}
p{
font-family: "思源黑体","PingFang SC", "Microsoft YaHei", "微软雅黑", "wqy-microhei",sans-serif;
margin-bottom: 15px;
padding: 0;
}
h1 {
font-size: 28px;
}
h2 {
color: #0000FF;
font-size: 24px;
}
h3 {
color: #33CC33;
font-size: 20px;
}
h4 {
color: #483D8B;
font-size: 18px;
}
h5 {
color: #8B008B;
font-size: 16px;
}
h6 {
color: #444444;
font-size: 15px;
}
a {
color: #0099ff;
margin: 0;
padding: 0;
vertical-align: baseline;
}
ul, ol {
padding: 0;
margin: 10px 20px;
}
ul {
list-style-type: disc;
}
ol {
list-style-type: decimal;
}
li {
line-height: 24px;
}
li ul, li ul {
margin-left: 24px;
}
p, ul, ol {
font-size: 16px;
line-height: 24px;
}
aside {
display: block;
float: right;
width: 390px;
}
blockquote {
border-left: 3px solid #bbbec4;
padding-left: 10px;
margin-top: 10px;
margin-bottom: 10px;
color: #7b7b7b;
}
hr {
width: 540px;
text-align: left;
margin: 0 auto 0 0;
color: #999;
}
table {
border-collapse: collapse;
margin: 1em 1em;
border: 1px solid #ccc;
thead {
background-color: #eee;
td {
color: #666;
}
}
td {
padding: 0.5em 1em;
border: 1px solid #ccc;
}
}
</style>
<link rel="stylesheet" type="text/css" href="/public/github.css">
</head>
<body>
<div class="container">
<div id="markup">
<article id="content" class="markdown-body">
{{!html_part}}
</article>
</div>
</div>
</body>
<script type="text/x-omnimarkup-config">
window.App.Context = {
buffer_id: {{buffer_id}},
timestamp: '{{timestamp}}',
revivable_key: '{{revivable_key}}'
};
window.App.Options = {
ajax_polling_interval: {{ajax_polling_interval}},
mathjax_enabled: {{'true' if mathjax_enabled else 'false'}}
};
</script>
<script type="text/javascript" src="/public/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="/public/imagesloaded.pkgd.min.js"></script>
<script type="text/javascript" src="/public/app.js"></script>
%if mathjax_enabled:
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$', '$$'], ["\\[", "\\]"] ],
processEscapes: true
},
TeX: {
equationNumbers: {
autoNumber: 'AMS'
}
},
'HTML-CSS': {
imageFont: null
}
});
</script>
<script type="text/javascript" src="/public/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
%end
</html>

Theme

使用的主题是attack安利的Boxy.还是很好看的.

编译

这个利用的是本身的编译系统, 编译文件如下:

C++

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"encoding": "utf-8",
"working_dir": "$file_path",
"shell_cmd": "g++ \"$file_name\" -O2 -o \"$file_base_name\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"selector": "source.cpp",
"variants":
[
{
"name": "RunWithoutCPP11",
"shell_cmd": "g++ \"$file\" -Wl,-stack=5120000000 -g -O2 -o \"$file_base_name\" && start cmd /c \"\"${file_path}/${file_base_name}\" & pause \""
},
{
"name": "RunWithoutO2",
"shell_cmd": "g++ -std=c++11 \"$file\" -Wl,-stack=5120000000000 -g -o \"$file_base_name\" && start cmd /c \"\"${file_path}/${file_base_name}\" & pause \""
},
{
"name": "RunCmd",
"shell_cmd": "g++ -std=c++11 \"$file\" -Wl,-stack=5120000000000 -g -O2 -o \"$file_base_name\" && start cmd /c \"\"${file_path}/${file_base_name}\" & pause \""
},
{
"name": "Rungdb32",
"shell_cmd": "g++ -std=c++11 \"$file\" -Wl,-stack=5120000000000 -g -o \"$file_base_name\" && start gdb32 \"$file_base_name\" "
}
]
}

C

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
"encoding": "utf-8",
"working_dir": "$file_path",
"shell_cmd": "gcc \"$file_name\" -w-o \"$file_base_name\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"selector": "source.cpp",
"variants":
[
{
"name": "RunCmd",
"shell_cmd": "gcc \"$file\" -w -o \"$file_base_name\" && start cmd /c \"\"${file_path}/${file_base_name}\" & pause \""
}
]
}
-------------本文结束感谢您的阅读-------------