I
I
Ilya Kovalevsky2011-09-08 21:15:40
PHP
Ilya Kovalevsky, 2011-09-08 21:15:40

Best Highlighter

Tell me which Highlighter is better? It is necessary that you can simply insert it (as it is necessary for a blog) and that you can screw it into the blog engine in PHP.

In short, the task: you just need to post the code from the admin panel so that it is highlighted well.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
N
newonder, 2011-09-08
@namespace

There is a wonderful js highlighter prettify. code.google.com/p/google-code-prettify/. In the post itself, the block with the code is placed in the pre tag.

I
Ilya Plotnikov, 2011-09-08
@ilyaplot

If you want to highlight code directly in the editor, then editarea. If static - habrahabr.ru/blogs/webdev/31354/

V
Varnak, 2011-09-08
@Varnak

Codemirror , liked more than editarea .
If you dig into the demo, you can find auto-completion.
In general, in the English wiki there is a comparison

W
Wolverine, 2011-09-09
@Wolverine

If you need to highlight on the generated pages, then very cool highlight.js from Ivan Sagalaev

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question