What is a syntax shortcut?

I am looking for a good syntax shortcut for my site that uses PHP, MySQL and jQuery. A syntax shortcut that does not allow the code to overlap, but allows the user to scroll, as here, in stackoverflow.

+3
source share
5 answers

Absolutely all the highlighting source code sources based on the Geshi library http://qbnz.com/highlighter/

You can create blocks of code "do not allow code to overlap, but allows the user to scroll" by adding CSS overflow : auto;

- JavaScript- JavaScript, http://alexgorbatchev.com/SyntaxHighlighter/ http://softwaremaniacs.org/soft/highlight/en/

+2

- CSS, - - ...

max-height: 600px;
overflow: auto;

( overflow , max-height , .)

hilighting, google-code-prettify.

+1

Highligter php, sql, js ..

0
0
source

Please check out the Prettify GC Syntax Highlighter . But, as described here , you may need to make small changes to the CSS file of the plugin.

0
source

Source: https://habr.com/ru/post/1772960/


All Articles