-
Notifications
You must be signed in to change notification settings - Fork 277
Syntax Highlighter
Olivier Carpentier edited this page Oct 10, 2016
·
8 revisions
The Syntax Highlighter Web Part is a SharePoint client side web part built with the SharePoint Framework (SPFx) in the preview version. This web part adds an automatic code syntax viewer with a lot of supported languages as ActionScript3, Bash/shell, ColdFusion, C#, C++, CSS, Delphi, Diff, Erlang, Groovy, JavaScript, Java, JavaFX, Perl, PHP, Plain Text, PowerShell, Python, Ruby, Scala, SQL, Visual Basic, XML. You can also choose between themes to enhance your code. This Web Part uses the excellent and so popular SyntaxHighlighter by Alex Gorbatchev.
Thanks to this Web Part, you can copy/paste your code (as JavaScript) in a SharePoint page, and render it as a powerfull and elegant code editor.
You can manage the following settings:
- code: your code
- language: Choose a language to load the syntax. Can be: ActionScript3, Bash/shell, ColdFusion, C#, C++, CSS, Delphi, Diff, Erlang, Groovy, JavaScript, Java, JavaFX, Perl, PHP, Plain Text, PowerShell, Python, Ruby, Scala, SQL, Visual Basic, XML. Default is JavaScript.
- theme: Choose a theme. Can be Default, Django, Eclipse, Emacs, Fade to Grey, MD Ultra, Midnight, RDark.
- toolbar: Enables the toolbar '?' tip. Default is true
- gutter: Show the left margin with line numbers. Default is true
- autoLinks: Transform the founded url as clickable link. Default is true
- smartTabs: Activate the smart tabs mode. Default is true