User Tools

Site Tools


res:plugins:syntaxhighlighter-ng

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
res:plugins:syntaxhighlighter-ng [2023/06/21 11:15] – [Download] deltalimares:plugins:syntaxhighlighter-ng [2023/11/21 23:59] (current) – [Download] Added SyntaxHighlighter-NG Leggero-Edition fraenkiman
Line 1: Line 1:
 ===== SyntaxHighlighter-NG ===== ===== SyntaxHighlighter-NG =====
-Author: [[https://DeltaLima|DeltaLima]]+Author: [[https://deltalima.org|DeltaLima]]
  
 ==== Description ==== ==== Description ====
 Makes [code] blocks syntax highlighted (when language specified) with [[https://prismjs.com|prism.js]] Makes [code] blocks syntax highlighted (when language specified) with [[https://prismjs.com|prism.js]]
 +
 +By default the "small-size" prism.js language support is enabled. 
 +This contains following supported language tags by default:
 +
 +<code>
 +markup, css, clike, javascript, apacheconf, arduino, atom, bash, basic, batch, 
 +bbcode, c, cpp, cmake, csv, diff, docker, git, go, html, http, ini, java, json,
 +log, makefile, markdown, markup-templating, nginx, pascal, perl, php,
 +powershell, python, rss, ruby, shell-session, sql, svg, typescript, vbnet,
 +visual-basic, wiki, yaml, xml
 +</code>
 +
 +See [[https://prismjs.com/#supported-languages|prismjs.com#supported-languages]] for the corresponding "[code=]"-tags and the full list of languages which are supported in the full package, you can configure as well. 
 +
  
 ==== Example ==== ==== Example ====
Line 21: Line 35:
 </Location>[/code]</code> </Location>[/code]</code>
 {{:res:plugins:screenshot_2023-06-21_at_11-05-43_deltalima.org_syntaxhighlighter-ng_testpage.png}} {{:res:plugins:screenshot_2023-06-21_at_11-05-43_deltalima.org_syntaxhighlighter-ng_testpage.png}}
 +
 +==== Configuration ====
 +
 +You can configure the prism.js package size to use (tiny, small, full) and the used theme (coy, dark, default, funky, okaidia, solarizedlight, tomorrow, twilight).
 +
 +Just edit for that config.php 
  
 ==== Download ==== ==== Download ====
-[[https://git.la10cy.net/DeltaLima/flatpress-plugin-syntaxhighlighter-ng/archive/main.zip|Latest master from git.la10cy.net]]+[[https://git.la10cy.net/attachments/f5e4241b-2dbd-4b3d-9b16-d64b2e2bc691|syntaxhighlighter-ng_v1.0.3.zip]] 
 + 
 +or get the [[https://git.la10cy.net/DeltaLima/flatpress-plugin-syntaxhighlighter-ng/|latest main branch from git.la10cy.net]] 
 + 
 +For users of the FlatPress-Leggero theme: {{ res:plugins:deltalima:syntaxhighlighter-ng_v1.0.3-fp.zip |}}  
 + 
 +==== Demo ==== 
 +[[https://deltalima.org/blog/index.php/syntaxhighlighter-ng-testpage/]]
  
-**Support**+==== Support ====
  
 Please ask for help on the [[https://forum.flatpress.org/viewtopic.php?t=665|FlatPress Forum]] Please ask for help on the [[https://forum.flatpress.org/viewtopic.php?t=665|FlatPress Forum]]
res/plugins/syntaxhighlighter-ng.1687338956.txt.gz · Last modified: by deltalima

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki