开发者学堂课程【HTML 基础入门学习:sublime 介绍】学习笔记与课程紧密联系,让用户快速学习知识
课程地址:https://developer.aliyun.com/learning/course/465/detail/5705
sublime 介绍
一、sublime text2/3
原来 sublime text2 用的比较多,现在大多数使用的 sublime text3
1. 官网: http:// www.sublimetext.com/3
2. 特点:
(1) 适合初学者
(2) 代码补全
(3) 扩展插件丰富
一开始如果记不住东西,可以自己多手打一些。
在浏览器中可以打开官网。
这是编译器的样子:
void base64_encode(const uint8_t * data,size_t ler, char * dst)
{
size_t
src_ idx =
0
;
Size
_
t dst
_
idx =
0
;
for (;(src_idx + 2)
<
le
n
;src_idx +
=
3, dst_idx =4)
{
uint8
_
t
s
0
=data
[s
rc
_
idx];
uint8
_
t
s1 =datat
[s
rc
_
idx +1];
uint8
_
t
s2=data
[
src
_
idx+2
]
;
dst[dst_idx +
0
]=charset[(s
0
&
0
xfc) >
>
2
]
;
Dst
[
dst_idx + 1] = charset[((s0 & 0x03)<< 4)
|
((s1 &
0xf0) >>4)
]
;
Dst
[
dst_idx + 2] = charset
[
((s1 &
0
x
0
f)
<<
2)
| (
s2
&
0xc0
) >> 6];
Dst
[
dst_idX+3]=charset
[
(s2 &
0
x3f)
]
;
}
if (src_idx < le
ngth
)
{
Uint
8_t s0
=data[src_idx];
Uint
8_t s1
= (src_idx + 1 <le
ngth
)? data[sr
c
_idx +1] : 0;
dst [dst_idx+
+
] = charset [(s
0
&
0
xfc)
>
>2];
dst[dst_idx+
+
] = charset [(s
0
&
0x03
) <<4)
|
(s1 &
0
xf0) >> 4)
)
;
if (src_idx +1< le
ngth
)
Dst
[
dst_idx++]=charset [
(
(s1 &
0x0f
)
<<
2)
]
;
}
在 Download 中也可以下载 sublime text3:
Sublime Text 3 is currently in beta. The latest build is 3083.
1、oSx (10.7 or later is required)
2、Windowsalso
-also
available as a portable version
3、Windows 64 bit -also available as a portable version
4、Ubuntu 64 bit - also available as a tarball for other Linux distributions.
5、Ubuntu 32 bit - also available as a tarball for other Linux distributions.
For notification about new versions, follow sublimehq on twitter.
Even more bleeding-edge versions are available in the dev builds.
建议大家下载 text3,因为是最新的,可以根据自己电脑操作系统去下载相应的。
比如电脑是苹果的,那么就下载第一个,如果是 windows 32位的下载第二个就可以,下载完成就是一个安装软件,点击下一步就可以安装完成,不需要做任何配置。
打开这个软件非常简洁整个区域都是可以手写代码的,比如新建一个 html 文件,写 html 非常简单。
比如以前都是慢慢手打,现在如果打 html 一些基础内容,打上 html 然后按下 tab 键就会自动补全。
比如再写一个 div 按下 tab 也是会自动补全。
这个编译器样子非常炫酷,启动速度非常快,还有各种补全,非常方便,对于写代码时非常提高效率,节省时间。