Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 948 Bytes

File metadata and controls

45 lines (30 loc) · 948 Bytes

代码

1. 使用一个Tab或者四个空格添加代码块

void main(){ //一个 Tab
printf("Hello World!\n");
return 0;
}

<html> //四个空格
<title> Hello World </title>
</html>

效果:

void main(){  //一个 Tab
    printf("Hello World!\n"); 
    return 0;
}
 <html>  //四个空格  
     <title> Hello World 
     </title>  
 </html>

REMARK:

  1. 和之前相似,代码块需要前后空一行
  2. 需要注意的是,代码块部分每一行前面都需要一个Tab或者四个空格(一般情况下,IDE会帮你把前面的部分空出来)



2. 行内代码可以用`` (Tab键上方,数字1左边的按键)标记

这里插入一个C语言代码块'void main()`

效果:

这里插入一个C语言代码块void main()