free
4,2 10  votes

Highlight code

Highlight syntax of the code selecting the necessary language, style, and background color.

Compatible products

ONLYOFFICE Personal

ONLYOFFICE Cloud

ONLYOFFICE Workspace

ONLYOFFICE Workspace Enterprise

ONLYOFFICE Docs Enterprise

ONLYOFFICE Docs Developer

ONLYOFFICE Desktop Editors

Compatible products

ONLYOFFICE Personal

ONLYOFFICE Cloud

ONLYOFFICE Workspace

ONLYOFFICE Workspace Enterprise

ONLYOFFICE Docs Enterprise

ONLYOFFICE Docs Developer

ONLYOFFICE Desktop Editors

Highlight syntax of the code selecting the necessary language, style, and background color.

free
4,2 10  votes

Compatible products

ONLYOFFICE Personal

ONLYOFFICE Cloud

ONLYOFFICE Workspace

ONLYOFFICE Workspace Enterprise

ONLYOFFICE Docs Enterprise

ONLYOFFICE Docs Developer

ONLYOFFICE Desktop Editors

TRY IN THE CLOUD

Overview

The Highlight code plugin allows you to highlight syntax of the code in text documents, spreadsheets, and presentations with the ability to select the necessary programming language, style, background color. The plugin uses the highlight.js engine.

Supported languages and styles

Supported languages: apache, bash, shell, matlab, erlang, javascript, profile, ruby, prolong, swift, sql, java, http, fortran, perl, xml, cpp, json, cs, nginx, basic, markdown, css, python, objectivec, php, delphi.

Supported styles: Googlecode, GitHub, GitHub Gist, Android Studio, Visual Studio, Visual Studio 2015, Idea, Qtcreator Dark, Qtcreator Light, XCode, Fortran, Foundation, XML 1, XML 2.

How to use

  • Select a part of the text you would like to highlight as a code.
  • Choose Highlight code from the Plugins tab.
  • Select the necessary programming language (e.g. JavaScript, Ruby, Python, etc).
  • Select the necessary style (e.g. GitHub, XCode, Idea, etc).
  • Apply any background color.
  • If necessary, replace tabs with spaces using the corresponding option.
  • Click the Ok button.

How to install

For server and cloud solutions

Install the plugin via the built-in Plugin Manager right in the editors with one click.

For desktop editors

  • Archive the plugin files (it must contain config.json, index.html, and pluginCode.js).
  • Change the file extension to .plugin.
  • Go to the Plugins tab, click Settings >> Add plugin, browse for the .plugin file.