What this solution does
This module adds convenient syntax highlighting for code directly within Bitrix24 chat messages. It is designed for development teams, system administrators, integrators, and technical specialists who actively exchange code snippets, logs, SQL queries, and configurations.
The module extends the standard messenger functionality by supporting the BBCode tag [code=lang]...[/code]. Syntax highlighting is powered by the highlight.js library, which supports dozens of programming languages and configuration formats.
Key features:
- Syntax highlighting for code in chat messages.
- Automatic language detection if the specified language is incorrect or missing.
- Support for a wide range of languages including PHP, JavaScript, SQL, Bash, HTML, CSS, and others.
- One-click code copy button.
- Theme selection for highlighting (light and dark themes).
- Maximum code block size limit to protect against large logs.
- Proper handling of dynamically loaded chat messages.
This solution is designed for IT departments, internal teams, Bitrix24 integrators, and companies using the platform to discuss technical tasks.
The module installs and connects automatically. It uses the standard BBCode [code] tag to format code within chats. When a message is displayed, the code is automatically formatted and syntax-highlighted. Users see a clean code block with a selected theme and a copy button.
The module does not require changes to existing chats and does not affect the standard operation of Bitrix24.
General iT can install and configure this module and check how it works on your website.