Features
Custom title and lines highlighting
You can now specify a custom code block header title. For example, users can provide a filename for code blocks instead of writing it in the text or putting the whole code block inside a spoiler with filename title.
Moreover, you can even highlight certain lines!
Custom title and lines to be highlighted can be set via "Insert code" dialog:
You can also set the title and lines to highlight directly in text editor by adding title="..." and highlight="..." parameters in code bbcode.
Example:
will produce this codeblock:
Hovering custom title will show the code language:
Example of highlighting:
Expand/Collapse buttons
Expand button smoothly increasing the height of code block until all the code is showing. It is visible only when code block height is LESS than the actual code size.
Collapse button smoothly decreasing the height of code block to it's default height which you can set in style properties. It is visible only when code block height is LARGER than default code block height.
Both expand and collapse buttons are visible when code block height is within min and max limits and invisible on code blocks that are smaller than default code block height.
The default height of code block can be set in style properties ("Code" section below "Messages"):
Copy button
Copy button simply copy the code right into your clipboard:
Line numbers
All code blocks have line numbers (up to 1000 lines). Line numbers can be turned off via style properties:
Resizer
Every code block which code height is larger than the default height has a resizer bar. It allows users to vertically resize code block:
Custom title and lines highlighting
You can now specify a custom code block header title. For example, users can provide a filename for code blocks instead of writing it in the text or putting the whole code block inside a spoiler with filename title.
Moreover, you can even highlight certain lines!
Custom title and lines to be highlighted can be set via "Insert code" dialog:
You can also set the title and lines to highlight directly in text editor by adding title="..." and highlight="..." parameters in code bbcode.
Example:
My Custom Title:
<? .... ?>
Hovering custom title will show the code language:
Example of highlighting:
PHP:
a log of code...
Expand/Collapse buttons
Expand button smoothly increasing the height of code block until all the code is showing. It is visible only when code block height is LESS than the actual code size.
Collapse button smoothly decreasing the height of code block to it's default height which you can set in style properties. It is visible only when code block height is LARGER than default code block height.
Both expand and collapse buttons are visible when code block height is within min and max limits and invisible on code blocks that are smaller than default code block height.
The default height of code block can be set in style properties ("Code" section below "Messages"):
Copy button
Copy button simply copy the code right into your clipboard:
Line numbers
All code blocks have line numbers (up to 1000 lines). Line numbers can be turned off via style properties:
Resizer
Every code block which code height is larger than the default height has a resizer bar. It allows users to vertically resize code block:
Last edited: