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.
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;
overflow : auto;
- JavaScript- JavaScript, http://alexgorbatchev.com/SyntaxHighlighter/ http://softwaremaniacs.org/soft/highlight/en/
- CSS, - - ...
max-height: 600px; overflow: auto;
( overflow , max-height , .)
overflow
max-height
hilighting, google-code-prettify.
Highligter php, sql, js ..
, : alexgorbatchev.com/SyntaxHighlighter/
http://codemirror.net/
sql, javascript php
, div css,
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.
Source: https://habr.com/ru/post/1772960/More articles:What is the difference between "$ .FunctionName ()" and "FunctionName ()"? - javascriptWhen I click, I want to add the value of the a-tag to the input field - javascriptsingle quote in file name - javascript, php - javascriptfind all rows in a list containing x or y? - listSet thread volume ALSA - linuxHow to create a template engine - pythonJava - using a downloaded package without an IDE - javaDoes OpenGL render a texture with a different color than the original image? - c ++Как обновить родительскую страницу С# со всплывающей страницы без полного обновления - javascriptjquery: live () - live only once? - jqueryAll Articles