Description of plugin Code:This addon greatly expands the capabilities of the code block in the message: its own block header, three new buttons (expand, collapse, copy), a height change bar, show numbers and highlight lines of code.
A simple but reliable plugin that I saw on this site, but for some reason it was not published for everyone.
Key points in the Code plugin:The title and line numbers for highlighting can also be specified directly in the text editor using the title="..."and parameters highlight="...".
For example, the code [code lang="php" title="My Custom Title"]<? ... ?>[/code] will create the following block:
The programming language of the block is displayed when hovering over the title:
Line highlighting example:[code lang="php" highlight="2, 5-8"]a log of code...[/code]
- Download the addon
- Upload the contents of the upload folder to the root of the forum
- In the admin panel, go to the "Plugins" section and install Code
ATTENTION: after removing the addon, blocks of code with their own names will no longer be correctly (or simply no longer) highlighted!
- Remove addon from admin panel
- Go to forum root folder and delete js/Code folder