Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dragomano/highlight.js-for-smf

This script highlights syntax in code examples on SMF forum.
https://github.com/dragomano/highlight.js-for-smf

php smf-mods syntax-highlighting

Last synced: 3 days ago
JSON representation

This script highlights syntax in code examples on SMF forum.

Awesome Lists containing this project

README

        

# highlight.js for SMF

[![SMF 2.1](https://img.shields.io/badge/SMF-2.1-ed6033.svg?style=flat)](https://github.com/SimpleMachines/SMF2.1)
![License](https://img.shields.io/github/license/dragomano/code-highlighting)
![Hooks only: Yes](https://img.shields.io/badge/Hooks%20only-YES-blue)

- **Tested on:** PHP 8.2.16
- **Languages:** English, French, Russian, Spanish, German

## Description

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.

This mod uses scripts of Ivan Sagalaev [highlight.js](https://highlightjs.org) and Yauheni Pakala [highlightjs-line-numbers.js](https://github.com/wcoder/highlightjs-line-numbers.js).

Highlight.js is released under the BSD License.

---

## Описание

Подсветка с автоматическим определением используемого языка, а также с возможностью выбора стиля оформления.
Поддерживаемые языки: HTML/XML, Javascript, CSS, PHP, Ruby, Perl, Python, C++, C#, Java, SQL, Bash и многие другие.

Используются скрипты Ивана Сагалаева [highlight.js](https://highlightjs.org) и Евгения Пакало [highlightjs-line-numbers.js](https://github.com/wcoder/highlightjs-line-numbers.js).

Highlight.js распространяется на условиях лицензии BSD.