本文完整阅读约需 10 分钟,如时间较长请考虑收藏后慢慢阅读~

因为打算把这个博客变成技术分享型的,所以需要一个代码高亮插件。

这几天一直都在找,可惜没有合适的,大部分都要在可视化编辑器里面写着写着跳转到html代码里面<code>……</code>,或者好一点的也要用bbcode([code]……[/code]),这对于我这种喜欢简洁高效的人来说简直是折磨。

还好找到了Pure-HighLightsjs这款插件,不能更喜欢。

这款插件利用的依旧是熟悉的HighLights.js,但却集成进了WordPress自带的TinyMCE可视化编辑器中。安装后基本无需配置,只要点击编辑器工具栏上的“<>”图标,在浮窗中选择代码类型,键入代码即可。

支持的代码类型不算多,但绝对够用,个人感觉70%的人不会感到失望的。

令人感觉疑惑的是,这款优秀插件并未上架WordPress官网,所以特此提供下载地址:Pure-Highlightjs_1.0 密码:untitled.pw

无图无真相,无实例更无真相:

PHP片段:

<?php 
$x=1; 

do {
  echo "这个数字是:$x <br>";
  $x++;
} while ($x<=5);
?>

HTML片段:

<html>

<body>
<h1 style="font-family:verdana">A heading</h1>
<p style="font-family:arial;color:red;font-size:20px;">A paragraph.</p>
</body>

</html>

MarkDown:

How to Make a Computer Operating System
=======================================

Online book about how to write a computer operating system in C/C++ from scratch.

**Caution**: This repository is a remake of my old course. It was written several years ago [as one of my first projects when I was in High School](https://github.com/SamyPesse/devos), I'm still refactoring some parts. The original course was in French and I'm not an English native. I'm going to continue and improve this course in my free-time.

**Book**: An online version is available at [http://samypesse.gitbooks.io/how-to-create-an-operating-system/](http://samypesse.gitbooks.io/how-to-create-an-operating-system/) (PDF, Mobi and ePub). It was generated using [GitBook](https://www.gitbook.com/).

**Source Code**: All the system source code will be stored in the [src](https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System/tree/master/src) directory. Each step will contain links to the different related files.

**Contributions**: This course is open to contributions, feel free to signal errors with issues or directly correct the errors with pull-requests.

**Questions**: Feel free to ask any questions by adding issues or commenting sections.

You can follow me on Twitter [@SamyPesse](https://twitter.com/SamyPesse) or [GitHub](https://github.com/SamyPesse).

### What kind of OS are we building?

The goal is to build a very simple UNIX-based operating system in C++, not just a "proof-of-concept". The OS should be able to boot, start a userland shell, and be extensible.

![Screen](./preview.png)