Info |
---|
Please check out our YouTube video or our Live Demo to get an idea about how Prism Syntax Highlighter for Confluence works. |
Table of Contents
Table of Contents |
---|
Installation
As any app for Confluence Cloud, you can install the app via the Confluence admin menu.
Log into your Confluence instance as an admin.
Click on “Apps > Manage apps” in the header menu.
Click on “Find new apps” on the right navigation.
Search for “Prism Syntax Highlighter for Confluence” and select it.
Click on “Try it free” to install the app.
Usage
Prism Syntax Highlighter for Confluence provides two macro to highlight source code on any confluence page. One macro can be used to define the source code in the macro’s body in Confluence and the other macro includes the source code from a remote location (such as GitHub). To make use of the first option click the “Insert” / “+” Button in the edit mode and select the “Prism Syntax Highlighter” macro and add the source code as macro body. To include source code from a remote location add the “Prism Syntax Highlighter (Remote)” macro and set the macro option “URL” to the remote location.
The macros support the following options:
Language: Select the language of the source code to highlight.
Height: Optionally define the macro’s height.
Line numbers: Check to add line numbers.
First line number: If “Line numbers” option is checked, this options defines the line number to start from (leave empty to start from 1).
Lines(s) to highlight: Add the lines that should be highlighted in format “1-2,5,9-20”.
Download filename: Add a filename to allow downloading the source code.
Dialog title: Add a dialog title to allow opening the source code in a fullscreen dialog.
Supported languages
Prism Syntax Highlighter for Confluence supports the following languages:
ABAP
Augmented Backus–Naur form
ActionScript
Ada
Agda
AL
ANTLR4
Apache Configuration
Apex
APL
AppleScript
AQL
Arduino
ARFF
AsciiDoc
6502 Assembly
ASP.NET (C#)
Atom
AutoHotkey
AutoIt
Bash
BASIC
Batch
BBcode
Bison
Backus–Naur form
Brainfuck
BrightScript
Bro
BSL (1C:Enterprise) + OneScript
C
C-like
Concurnas
C#
C++
CFScript
ChaiScript
CIL
CoffeeScript
CMake
COBOL
Clojure
Crystal
Content-Security-Policy
Coq
CSS
CSS Extras
CSV
Cypher
D
Dart
DataWeave
DAX
Dhall
Diff
Django/Jinja2
DNS zone file
Docker
DOT (Graphviz)
Extended Backus–Naur form
EditorConfig
Eiffel
EJS
Elixir
Elm
Embedded Lua templating
ERB
Erlang
Excel Formula
F#
Factor
False
Firestore security rules
Flow
Fortran
FreeMarker Template Language
G-code
GDScript
GEDCOM
Gherkin
Git
GLSL
GameMaker Language
Go
GraphQL
Groovy
Haml
Handlebars
Haskell
Haxe
HCL
HLSL
HTML
HTTP
HTTP Public-Key-Pins
HTTP Strict-Transport-Security
IchigoJam
Icon
ICU Message Format
Idris
Ignore Files
Structured Text (IEC 61131-3)
Inform 7
Ini
Io
J
Java
JavaDoc
JavaDoc-like
JavaScript
Java stack trace
Jexl
Jolie
JQ
JSDoc
JS Extras
JSON
JSON5
JSONP
JS stack trace
JS Templates
Julia
Keyman
Kotlin
KuMir
LaTeX
Latte
Less
LilyPond
LiquidLisp
LiveScript
LLVM IR
Log file
LOLCODE
Lua
Makefile
Markdown
Markup
Markup templating
MathML
MATLAB
MEL
Mizar
MongoDB
Monkey
MoonScript
N1QL
N4JS
Nand To Tetris HDL
Naninovel Script
NASM
NEON
Nevod
nginx
Nim
Nix
NSIS
Objective-C
OCaml
OpenCL
OpenQasm
Oz
PARI/GP
Parser
Pascal
Pascaligo
PATROL Scripting Language
PC-Axis
PeopleCode
Perl
PHP
PHPDoc
PHP Extras
PL/SQL
PowerQuery
PowerShell
Processing
Prolog
PromQL
.properties
Protocol Buffers
Pug
Puppet
Pure
PureBasic
PureScript
Python
Q (kdb+ database)
Q#
QML
Qore
R
Racket
React JSX
React TSX
Reason
Regex
Rego
Ren'py
reST (reStructuredText)
Rip
Roboconf
Robot Framework
RSS
Ruby
Rust
SAS
Sass (Sass)
Sass (Scss)
Scala
Scheme
Shell session
Smali
Smalltalk
Smarty
SML + SML/NJ
Solidity (Ethereum)
Solution file
Soy (Closure Template)
SPARQL
Splunk SPL
SQF: Status Quo Function (Arma 3)
SQL
Squirrel
Stan
Stylus
SVG
Swift
TAP
Tcl
Textile
TOML
Template Toolkit 2
Turtle
Twig
TypeScript
TypoScript + TSConfig
T4 Text Templates (C#)
T4 Text Templates (VB)
T4 templating
UnrealScript
URI + URL
V
Vala
VB.Net
Velocity
Verilog
VHDL
vim
Visual Basic
WarpScript
WebAssembly
Wiki markup
Wolfram language + Mathematica + Mathematica Notebook
Xeora
XML
XML doc (.net)
Xojo (REALbasic)
XQuery
YAML
YANG
Zig