Home  >  Article  >  Backend Development  >  How to modify the theme file of typecho website builder so that the article presentation is the same as that published by cmd markdown?

How to modify the theme file of typecho website builder so that the article presentation is the same as that published by cmd markdown?

WBOY
WBOYOriginal
2016-12-05 13:44:231361browse

First take a look at the article edited under cmd markdown: Click
Isn’t it very cool? Look carefully, the support for markdown is perfect, and then look at the code background, line number, and highlighting are all perfect. Compared with the background of csdn, it is insufficient. The short book lacks line numbers, but cmd markdown is simply invincible. I really love it.

I just bought a host and a domain name last night, and used typecho to set up the site. Although I am an ITer, I don’t know anything about front-end knowledge. The theme templates I found online are quite good-looking, but I have no choice but to find a lot of them. Its support for markdown syntax, In particular, the code background and highlights are very poor. Compared with cmd markdown, they are more wildflowers than wildflowers.

So my idea is to modify the theme template file .css/.php or something, but where does this file come from? Fortunately, articles edited by cmd markdown can be published, so I published one, and then looked at the page source code and found css and the like, copy and paste in, but I don’t know what to do, because I looked at the source code, there are many css files, I don’t know which one is for what?

Please give me some guidance, thank you.

Reply content:

First take a look at the article edited under cmd markdown: Click
Isn’t it very cool? Look carefully, the support for markdown is perfect, and then look at the code background, line number, and highlighting are all perfect. Compared with the background of csdn, it is insufficient. The short book lacks line numbers, but cmd markdown is simply invincible. I really love it.

I just bought a host and a domain name last night, and used typecho to set up the site. Although I am an ITer, I don’t know anything about front-end knowledge. The theme templates I found online are quite good-looking, but I have no choice but to find a lot of them. Its support for markdown syntax, In particular, the code background and highlights are very poor. Compared with cmd markdown, they are more wildflowers than wildflowers.

So my idea is to modify the theme template file .css/.php or something, but where does this file come from? Fortunately, articles edited by cmd markdown can be published, so I published one, and then looked at the page source code and found css and the like, copy and paste in, but I don’t know what to do, because I looked at the source code, there are many css files, I don’t know which one is for what?

Please give me some guidance, thank you.

cmd markdown uses Google Code Prettify

You also need to install this plug-in and use it with the css you are looking for

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn