October 17, 2021, 09:12:58 AM

News:

SMF 2.0.18 has been released! Please update. Read more.


Additional Info
Type
Package ID
Bugo:Highlighting
First Created
February 01, 2011, 07:55:41 AM
Last Updated
September 02, 2021, 02:10:49 AM

Code Highlighting v1.5 (2.0), 1.0 (2.1) Hooks only

Syntax highlighting in messages.
Compatible With 2.0.18, 2.1 RC4
Latest version v1.5 (2.0), 1.0 (2.1)
Downloads 4,181
Reviews 0
Rating 0/5
Subscribers 14
License BSD 3-Clause "New" or "Revised" License (View License)
Author(s)
This script highlights syntax in code examples on your forum.
It is very easy to use because it works automatically: finds blocks of code, detects a language, highlights it.
Supported languages: HTML/XML, Javascript, CSS, PHP, Ruby, Perl, Python, C++, C#, Java, SQL, Bash, etc.


All supported languages and styles

How to use? Very simply!

[code]your code[/code]


Advanced using

[code=language]your code[/code]


Features:
  • You can choose code formatting scheme
  • You can choose font size within code blocks
  • Highlighting works automatically: finds blocks of code, detects a language, highlights it — you don't need to specify any language

Edit this CSS in /Themes/default/css/highlight.css to customize line numbers:
.hljs-ln-numbers {
    text-align: center;
    color: #f36;
    border-right: 1px solid #f36;
    vertical-align: top;
    min-width: 25px;
}

Available translations:
  • English
  • Russian
  • French
  • Spanish

code_highlighting_1.5_smf20.zip
251138 KB v1.5 2.0.18
code_highlighting_1.0_smf21.zip
248325 KB v1.0 2.1 RC4
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: