I really like the editor and the excellent printing functionality in Stack Overflow. Is there a plugin for using the editor and good printing features in WordPress?
Simplicity and appearance are at least as good as any other plugin I tried.
Well, since I want to accept ansver, and Conspicuous does not write my comment as an answer, I will give it to you :). My solution to the issue was to install two plugins: http://www.deanlee.cn/wordpress/google-code-prettify-for-wordpress/ and also http://wordpress.org/extend/plugins/markdown- for-wordpress-and-bbpress /
The google prettify code is designed to make the code look beautiful, and the markdown plugin is designed for easy editing, but without a direct preview, so you click the preview button to get any result. The result of some posts can be seen here: blog.tomasjansson.com .
: http://daringfireball.net/projects/markdown/.
-, . markdown. _doCodeBlocks_callback. , pre : $codeblock = "<pre class=\"prettyprint\">$codeblock\n</pre>";. , return makeCodeSpan : return $this->hashPart("<code class=\"prettyprint\">$code</code>");.
_doCodeBlocks_callback
pre
$codeblock = "<pre class=\"prettyprint\">$codeblock\n</pre>";
makeCodeSpan
return $this->hashPart("<code class=\"prettyprint\">$code</code>");
... .
, , , . WP-Syntax .
Wordpress : -)
Source: https://habr.com/ru/post/1770867/More articles:How to return a two-dimensional array of C # in VBScript - c #Does googlebot crawl urls in jQuery $ .get () calls and can it be prevented? - jqueryHtml dropdown with different size for list of records and selected record - javascriptHow to access call logs from J2ME applications? - javaHow to hide a file using adobe AIR? - airIs a screen reader capable of reading JavaScript dynamically generated webpage? - javascriptClass constructor / setter - scalaCan multiple inheritance be achieved in C # using interfaces? - c #внутри div автоматически устанавливается ширина li в ie - htmlMake the next symbol of space as capital - javaAll Articles