From 3c3c6c2f2e84f434ac9c86c065478d4486c743d8 Mon Sep 17 00:00:00 2001 From: William Troup Date: Mon, 26 Feb 2024 22:00:17 +0000 Subject: [PATCH 1/3] Updated to v2.4.3. --- README.md | 6 +++--- README_NUGET.md | 6 +++--- dist/languages/syntax.bash.js | 2 +- dist/languages/syntax.c-plus-plus.js | 2 +- dist/languages/syntax.c-sharp.js | 2 +- dist/languages/syntax.c.js | 2 +- dist/languages/syntax.css.js | 2 +- dist/languages/syntax.dart.js | 2 +- dist/languages/syntax.delphi.js | 2 +- dist/languages/syntax.f-sharp.js | 2 +- dist/languages/syntax.go.js | 2 +- dist/languages/syntax.html.js | 2 +- dist/languages/syntax.java.js | 2 +- dist/languages/syntax.javascript.js | 2 +- dist/languages/syntax.kotlin.js | 2 +- dist/languages/syntax.lua.js | 2 +- dist/languages/syntax.matlab.js | 2 +- dist/languages/syntax.ms-sql.js | 2 +- dist/languages/syntax.perl.js | 2 +- dist/languages/syntax.php.js | 2 +- dist/languages/syntax.powershell.js | 2 +- dist/languages/syntax.python.js | 2 +- dist/languages/syntax.r.js | 2 +- dist/languages/syntax.ruby.js | 2 +- dist/languages/syntax.rust.js | 2 +- dist/languages/syntax.scala.js | 2 +- dist/languages/syntax.swift.js | 2 +- dist/languages/syntax.typescript.js | 2 +- dist/languages/syntax.visual-basic.js | 2 +- dist/syntax.js | 4 ++-- dist/syntax.js.css | 2 +- dist/syntax.js.min.css | 2 +- dist/syntax.min.js | 4 ++-- docs/CHANGE_LOG.md | 2 ++ package.json | 2 +- src/syntax.js | 4 ++-- src/syntax.js.scss | 2 +- syntax.js.nuspec | 2 +- 38 files changed, 46 insertions(+), 44 deletions(-) diff --git a/README.md b/README.md index 0bafedb..dbfce95 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,15 @@ Syntax.js [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Syntax.js%2C%20a%20free%20JavaScript%20syntax%20highlighter&url=https://github.com/williamtroup/Syntax.js&hashtags=javascript,syntax,highlighter) -[![npm](https://img.shields.io/badge/npmjs-v2.4.2-blue)](https://www.npmjs.com/package/jsyntax.js) -[![nuget](https://img.shields.io/badge/nuget-v2.4.2-purple)](https://www.nuget.org/packages/jSyntax.js/) +[![npm](https://img.shields.io/badge/npmjs-v2.4.3-blue)](https://www.npmjs.com/package/jsyntax.js) +[![nuget](https://img.shields.io/badge/nuget-v2.4.3-purple)](https://www.nuget.org/packages/jSyntax.js/) [![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/Syntax.js/blob/main/LICENSE.txt) [![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/Syntax.js/discussions) [![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://www.william-troup.com/) >

A lightweight, and easy-to-use, JavaScript library for code syntax highlighting!

->

v2.4.2

+>

v2.4.3


![Syntax.js](docs/images/main.png) diff --git a/README_NUGET.md b/README_NUGET.md index e439197..299022d 100644 --- a/README_NUGET.md +++ b/README_NUGET.md @@ -1,8 +1,8 @@ -# Syntax.js v2.4.2 +# Syntax.js v2.4.3 [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Syntax.js%2C%20a%20free%20JavaScript%20syntax%20highlighter&url=https://github.com/williamtroup/Syntax.js&hashtags=javascript,syntax,highlighter) -[![npm](https://img.shields.io/badge/npmjs-v2.4.2-blue)](https://www.npmjs.com/package/jsyntax.js) -[![nuget](https://img.shields.io/badge/nuget-v2.4.2-purple)](https://www.nuget.org/packages/jSyntax.js/) +[![npm](https://img.shields.io/badge/npmjs-v2.4.3-blue)](https://www.npmjs.com/package/jsyntax.js) +[![nuget](https://img.shields.io/badge/nuget-v2.4.3-purple)](https://www.nuget.org/packages/jSyntax.js/) [![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/Syntax.js/blob/main/LICENSE.txt) [![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/Syntax.js/discussions) [![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://www.william-troup.com/) diff --git a/dist/languages/syntax.bash.js b/dist/languages/syntax.bash.js index 1935c4f..a77eb46 100644 --- a/dist/languages/syntax.bash.js +++ b/dist/languages/syntax.bash.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "bash", { friendlyName: "Bash", keywords: [ diff --git a/dist/languages/syntax.c-plus-plus.js b/dist/languages/syntax.c-plus-plus.js index b5a52c4..f8bb36e 100644 --- a/dist/languages/syntax.c-plus-plus.js +++ b/dist/languages/syntax.c-plus-plus.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "c-plus-plus", { friendlyName: "C++", keywords: [ diff --git a/dist/languages/syntax.c-sharp.js b/dist/languages/syntax.c-sharp.js index 5eee8a5..935a23b 100644 --- a/dist/languages/syntax.c-sharp.js +++ b/dist/languages/syntax.c-sharp.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "c-sharp", { friendlyName: "C#", keywords: [ diff --git a/dist/languages/syntax.c.js b/dist/languages/syntax.c.js index 6db02b7..ae930d8 100644 --- a/dist/languages/syntax.c.js +++ b/dist/languages/syntax.c.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "c", { friendlyName: "C", keywords: [ diff --git a/dist/languages/syntax.css.js b/dist/languages/syntax.css.js index 44bd78a..2fb90ff 100644 --- a/dist/languages/syntax.css.js +++ b/dist/languages/syntax.css.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "css", { friendlyName: "CSS", keywords: [ diff --git a/dist/languages/syntax.dart.js b/dist/languages/syntax.dart.js index 8c934f3..09f81a8 100644 --- a/dist/languages/syntax.dart.js +++ b/dist/languages/syntax.dart.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "dart", { friendlyName: "Dart", keywords: [ diff --git a/dist/languages/syntax.delphi.js b/dist/languages/syntax.delphi.js index 8adc01f..e9bbcfc 100644 --- a/dist/languages/syntax.delphi.js +++ b/dist/languages/syntax.delphi.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "delphi", { friendlyName: "Delphi", keywords: [ diff --git a/dist/languages/syntax.f-sharp.js b/dist/languages/syntax.f-sharp.js index 174c017..d4a589c 100644 --- a/dist/languages/syntax.f-sharp.js +++ b/dist/languages/syntax.f-sharp.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "f-sharp", { friendlyName: "F#", keywords: [ diff --git a/dist/languages/syntax.go.js b/dist/languages/syntax.go.js index 3dfe76e..9f658b6 100644 --- a/dist/languages/syntax.go.js +++ b/dist/languages/syntax.go.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "go", { friendlyName: "Go", keywords: [ diff --git a/dist/languages/syntax.html.js b/dist/languages/syntax.html.js index ed9cd5c..ceaf7e6 100644 --- a/dist/languages/syntax.html.js +++ b/dist/languages/syntax.html.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "html", { friendlyName: "HTML", keywords: [ diff --git a/dist/languages/syntax.java.js b/dist/languages/syntax.java.js index b476c83..3fe8efd 100644 --- a/dist/languages/syntax.java.js +++ b/dist/languages/syntax.java.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "java", { friendlyName: "Java", keywords: [ diff --git a/dist/languages/syntax.javascript.js b/dist/languages/syntax.javascript.js index ebebd22..97503a2 100644 --- a/dist/languages/syntax.javascript.js +++ b/dist/languages/syntax.javascript.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "javascript", { friendlyName: "JavaScript", keywords: [ diff --git a/dist/languages/syntax.kotlin.js b/dist/languages/syntax.kotlin.js index fe3d15c..49afedc 100644 --- a/dist/languages/syntax.kotlin.js +++ b/dist/languages/syntax.kotlin.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "kotlin", { friendlyName: "Kotlin", keywords: [ diff --git a/dist/languages/syntax.lua.js b/dist/languages/syntax.lua.js index 56513d2..2fca777 100644 --- a/dist/languages/syntax.lua.js +++ b/dist/languages/syntax.lua.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "lua", { friendlyName: "Lua", keywords: [ diff --git a/dist/languages/syntax.matlab.js b/dist/languages/syntax.matlab.js index db997ab..147c287 100644 --- a/dist/languages/syntax.matlab.js +++ b/dist/languages/syntax.matlab.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "matlab", { friendlyName: "Matlab", keywords: [ diff --git a/dist/languages/syntax.ms-sql.js b/dist/languages/syntax.ms-sql.js index 8a4f79e..9cb46b3 100644 --- a/dist/languages/syntax.ms-sql.js +++ b/dist/languages/syntax.ms-sql.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "ms-sql", { friendlyName: "MS SQL", keywords: [ diff --git a/dist/languages/syntax.perl.js b/dist/languages/syntax.perl.js index d4efcc7..600913e 100644 --- a/dist/languages/syntax.perl.js +++ b/dist/languages/syntax.perl.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "perl", { friendlyName: "Perl", keywords: [ diff --git a/dist/languages/syntax.php.js b/dist/languages/syntax.php.js index ce120ec..e3a4d04 100644 --- a/dist/languages/syntax.php.js +++ b/dist/languages/syntax.php.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "php", { friendlyName: "PHP", keywords: [ diff --git a/dist/languages/syntax.powershell.js b/dist/languages/syntax.powershell.js index 47d7079..565286b 100644 --- a/dist/languages/syntax.powershell.js +++ b/dist/languages/syntax.powershell.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "powershell", { friendlyName: "Powershell", keywords: [ diff --git a/dist/languages/syntax.python.js b/dist/languages/syntax.python.js index cc94e51..c247efb 100644 --- a/dist/languages/syntax.python.js +++ b/dist/languages/syntax.python.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "python", { friendlyName: "Python", keywords: [ diff --git a/dist/languages/syntax.r.js b/dist/languages/syntax.r.js index 9a8aa21..5fce4b7 100644 --- a/dist/languages/syntax.r.js +++ b/dist/languages/syntax.r.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "r", { friendlyName: "R", keywords: [ diff --git a/dist/languages/syntax.ruby.js b/dist/languages/syntax.ruby.js index be3f93f..07d482c 100644 --- a/dist/languages/syntax.ruby.js +++ b/dist/languages/syntax.ruby.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "ruby", { friendlyName: "Ruby", keywords: [ diff --git a/dist/languages/syntax.rust.js b/dist/languages/syntax.rust.js index 3ec5a9b..c266feb 100644 --- a/dist/languages/syntax.rust.js +++ b/dist/languages/syntax.rust.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "rust", { friendlyName: "Rust", keywords: [ diff --git a/dist/languages/syntax.scala.js b/dist/languages/syntax.scala.js index b9be9bb..7e8d158 100644 --- a/dist/languages/syntax.scala.js +++ b/dist/languages/syntax.scala.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "scala", { friendlyName: "Scala", keywords: [ diff --git a/dist/languages/syntax.swift.js b/dist/languages/syntax.swift.js index 076447f..aba9713 100644 --- a/dist/languages/syntax.swift.js +++ b/dist/languages/syntax.swift.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "swift", { friendlyName: "Swift", keywords: [ diff --git a/dist/languages/syntax.typescript.js b/dist/languages/syntax.typescript.js index b963f6a..24f8504 100644 --- a/dist/languages/syntax.typescript.js +++ b/dist/languages/syntax.typescript.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "typescript", { friendlyName: "TypeScript", keywords: [ diff --git a/dist/languages/syntax.visual-basic.js b/dist/languages/syntax.visual-basic.js index 40aad61..c650852 100644 --- a/dist/languages/syntax.visual-basic.js +++ b/dist/languages/syntax.visual-basic.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ $syntax.addLanguage( "visual-basic", { friendlyName: "Visual Basic", keywords: [ diff --git a/dist/syntax.js b/dist/syntax.js index 1b30d90..f34935b 100644 --- a/dist/syntax.js +++ b/dist/syntax.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ (function() { function render() { var tagTypes = _configuration.highlightAllDomElementTypes; @@ -1089,7 +1089,7 @@ return this; }; this.getVersion = function() { - return "2.4.2"; + return "2.4.3"; }; (function(documentObject, navigatorObject, windowObject, mathObject, jsonObject) { _parameter_Document = documentObject; diff --git a/dist/syntax.js.css b/dist/syntax.js.css index daba39f..e4e2558 100644 --- a/dist/syntax.js.css +++ b/dist/syntax.js.css @@ -1,5 +1,5 @@ /* - * Syntax.js Library v2.4.2 + * Syntax.js Library v2.4.3 * * Copyright 2024 Bunoon * Released under the MIT License diff --git a/dist/syntax.js.min.css b/dist/syntax.js.min.css index adfd4cf..8039d0c 100644 --- a/dist/syntax.js.min.css +++ b/dist/syntax.js.min.css @@ -1,2 +1,2 @@ -/* Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/* Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ :root{--syntax-js-default-font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--syntax-js-color-keyword:#A71500;--syntax-js-color-value:#F28C28;--syntax-js-color-attribute:#730dd9;--syntax-js-color-keyword-hover:red;--syntax-js-color-value-hover:#FFAC1C;--syntax-js-color-attribute-hover:#a656f5;--syntax-js-color-comment:#78b13f;--syntax-js-color-multi-line-comment:var(--syntax-js-color-comment);--syntax-js-color-string:#484dd2;--syntax-js-color-multi-line-string:var(--syntax-js-color-string);--syntax-js-color-black:#3b3a3a;--syntax-js-color-white:#F5F5F5;--syntax-js-color-dark-gray:gray;--syntax-js-color-gray:#BBB;--syntax-js-color-lighter-gray:silver;--syntax-js-container-background-color:#e8e6e6;--syntax-js-container-border-color:var(--syntax-js-color-black);--syntax-js-container-syntax-background-color:#EEE;--syntax-js-container-syntax-border-color:#CCC;--syntax-js-container-numbers-background-color:#ddd;--syntax-js-container-numbers-border-color:var(--syntax-js-color-gray);--syntax-js-container-description-background-color:var(--syntax-js-container-numbers-background-color);--syntax-js-container-description-border-color:var(--syntax-js-container-numbers-border-color);--syntax-js-tab-background-color:var(--syntax-js-color-white);--syntax-js-tab-text-color:var(--syntax-js-color-black);--syntax-js-tab-border-color:var(--syntax-js-color-black);--syntax-js-tab-active-background-color:var(--syntax-js-color-black);--syntax-js-tab-active-text-color:var(--syntax-js-color-white);--syntax-js-tab-active-border-color:var(--syntax-js-color-black);--syntax-js-tab-hover-background-color:var(--syntax-js-container-numbers-background-color);--syntax-js-tab-hover-text-color:var(--syntax-js-color-black);--syntax-js-tab-hover-border-color:var(--syntax-js-color-black);--syntax-js-button-background-color:var(--syntax-js-color-black);--syntax-js-button-text-color:var(--syntax-js-color-white);--syntax-js-button-hover-background-color:var(--syntax-js-color-dark-gray);--syntax-js-button-hover-text-color:var(--syntax-js-color-white);--syntax-js-border-radius:.5rem;--syntax-js-border-style-scrollbar:inset 0 0 6px var(--syntax-js-color-dark-gray);--syntax-js-border-size:.5px;--syntax-js-transition:all .3s}code.syntax-highlight,div.syntax-highlight{font-family:var(--syntax-js-default-font);font-size:.8rem}code.syntax-highlight div.code,div.syntax-highlight div.code{background-color:var(--syntax-js-container-background-color);border-radius:var(--syntax-js-border-radius);padding:15px;overflow-x:auto;overflow-y:hidden;position:relative;border:var(--syntax-js-border-size) solid var(--syntax-js-container-border-color);color:var(--syntax-js-color-black)}code.syntax-highlight div.code div.tabs,div.syntax-highlight div.code div.tabs{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;cursor:default;text-wrap:nowrap;margin-bottom:10px}code.syntax-highlight div.code div.tabs button.tab,code.syntax-highlight div.code div.tabs button.tab-active,div.syntax-highlight div.code div.tabs button.tab,div.syntax-highlight div.code div.tabs button.tab-active{display:inline-block;padding:10px;padding-left:15px;padding-right:15px;border-radius:var(--syntax-js-border-radius);margin:0!important;margin-right:10px!important;cursor:default;outline:none!important}code.syntax-highlight div.code div.tabs button.tab:last-child,code.syntax-highlight div.code div.tabs button.tab-active:last-child,div.syntax-highlight div.code div.tabs button.tab:last-child,div.syntax-highlight div.code div.tabs button.tab-active:last-child{margin-right:0}code.syntax-highlight div.code div.tabs button.tab,div.syntax-highlight div.code div.tabs button.tab{background-color:var(--syntax-js-tab-background-color);color:var(--syntax-js-tab-text-color);border:var(--syntax-js-border-size) solid var(--syntax-js-tab-border-color);transition:var(--syntax-js-transition)}code.syntax-highlight div.code div.tabs button.tab:hover,div.syntax-highlight div.code div.tabs button.tab:hover{cursor:pointer;background-color:var(--syntax-js-tab-hover-background-color);color:var(--syntax-js-tab-hover-text-color);border:var(--syntax-js-border-size) solid var(--syntax-js-tab-hover-border-color)}code.syntax-highlight div.code div.tabs button.tab-active,div.syntax-highlight div.code div.tabs button.tab-active{background-color:var(--syntax-js-tab-active-background-color);color:var(--syntax-js-tab-active-text-color);border:var(--syntax-js-border-size) solid var(--syntax-js-tab-active-border-color);font-weight:700}code.syntax-highlight div.code div.tab-contents,div.syntax-highlight div.code div.tab-contents{display:flex;width:100%}code.syntax-highlight div.code div.tab-contents pre,div.syntax-highlight div.code div.tab-contents pre{margin:0!important}code.syntax-highlight div.code div.tab-contents div.description,div.syntax-highlight div.code div.tab-contents div.description{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;cursor:default;margin-right:15px;background-color:var(--syntax-js-container-description-background-color);padding:10px;padding-left:15px;padding-right:15px;border-radius:var(--syntax-js-border-radius);text-align:left;border:var(--syntax-js-border-size) solid var(--syntax-js-container-description-border-color);color:var(--syntax-js-color-black);width:150px;display:none}@media (min-width:768px){code.syntax-highlight div.code div.tab-contents div.description,div.syntax-highlight div.code div.tab-contents div.description{display:block}}code.syntax-highlight div.code div.tab-contents div.numbers,div.syntax-highlight div.code div.tab-contents div.numbers{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;cursor:default;margin-right:15px;background-color:var(--syntax-js-container-numbers-background-color);padding:10px;padding-left:15px;padding-right:15px;border-radius:var(--syntax-js-border-radius);text-align:right;font-weight:800!important;border:var(--syntax-js-border-size) solid var(--syntax-js-container-numbers-border-color);display:none}code.syntax-highlight div.code div.tab-contents div.numbers p,div.syntax-highlight div.code div.tab-contents div.numbers p{margin:0;text-wrap:nowrap;color:var(--syntax-js-color-black)}@media (min-width:768px){code.syntax-highlight div.code div.tab-contents div.numbers,div.syntax-highlight div.code div.tab-contents div.numbers{display:block}}code.syntax-highlight div.code div.tab-contents div.syntax,div.syntax-highlight div.code div.tab-contents div.syntax{flex-grow:1;padding:10px;border-radius:var(--syntax-js-border-radius);background-color:var(--syntax-js-container-syntax-background-color);border:var(--syntax-js-border-size) solid var(--syntax-js-container-syntax-border-color);position:relative;overflow:hidden}code.syntax-highlight div.code div.tab-contents div.syntax div.buttons,div.syntax-highlight div.code div.tab-contents div.syntax div.buttons{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;cursor:default;position:absolute;top:0;right:0;text-wrap:nowrap;display:flex}code.syntax-highlight div.code div.tab-contents div.syntax div.buttons button.button,code.syntax-highlight div.code div.tab-contents div.syntax div.buttons div.language-label,div.syntax-highlight div.code div.tab-contents div.syntax div.buttons button.button,div.syntax-highlight div.code div.tab-contents div.syntax div.buttons div.language-label{color:var(--syntax-js-button-text-color);background-color:var(--syntax-js-button-background-color);padding:7px;padding-left:10px;padding-right:10px;display:inline-block;border:none;border-right:1px dotted var(--syntax-js-color-gray);font-size:small;margin:0!important;outline:none!important}code.syntax-highlight div.code div.tab-contents div.syntax div.buttons button.button:first-child,code.syntax-highlight div.code div.tab-contents div.syntax div.buttons div.language-label:first-child,div.syntax-highlight div.code div.tab-contents div.syntax div.buttons button.button:first-child,div.syntax-highlight div.code div.tab-contents div.syntax div.buttons div.language-label:first-child{border-bottom-left-radius:var(--syntax-js-border-radius)}code.syntax-highlight div.code div.tab-contents div.syntax div.buttons button.button:last-child,code.syntax-highlight div.code div.tab-contents div.syntax div.buttons div.language-label:last-child,div.syntax-highlight div.code div.tab-contents div.syntax div.buttons button.button:last-child,div.syntax-highlight div.code div.tab-contents div.syntax div.buttons div.language-label:last-child{border-top-right-radius:var(--syntax-js-border-radius);border-right:none}code.syntax-highlight div.code div.tab-contents div.syntax div.buttons button.button,div.syntax-highlight div.code div.tab-contents div.syntax div.buttons button.button{transition:var(--syntax-js-transition)}code.syntax-highlight div.code div.tab-contents div.syntax div.buttons button.button-opener,div.syntax-highlight div.code div.tab-contents div.syntax div.buttons button.button-opener{font-weight:900!important}code.syntax-highlight div.code div.tab-contents div.syntax div.buttons div.language-label,div.syntax-highlight div.code div.tab-contents div.syntax div.buttons div.language-label{cursor:default;color:var(--syntax-js-color-gray);font-weight:700;flex:1}code.syntax-highlight div.code div.tab-contents div.syntax div.buttons button.button:hover,div.syntax-highlight div.code div.tab-contents div.syntax div.buttons button.button:hover{cursor:pointer;background-color:var(--syntax-js-button-hover-background-color);color:var(--syntax-js-button-hover-text-color)}code.syntax-highlight div.code div.tab-contents div.syntax p,div.syntax-highlight div.code div.tab-contents div.syntax p{margin:0;text-wrap:initial;color:var(--syntax-js-color-black)}@media (min-width:768px){code.syntax-highlight div.code div.tab-contents div.syntax p,div.syntax-highlight div.code div.tab-contents div.syntax p{text-wrap:nowrap}}code.syntax-highlight div.code div.tab-contents div.syntax p span.keyword,code.syntax-highlight div.code div.tab-contents div.syntax p span.keyword-clickable,div.syntax-highlight div.code div.tab-contents div.syntax p span.keyword,div.syntax-highlight div.code div.tab-contents div.syntax p span.keyword-clickable{font-weight:700;color:var(--syntax-js-color-keyword)}code.syntax-highlight div.code div.tab-contents div.syntax p span.keyword-clickable,code.syntax-highlight div.code div.tab-contents div.syntax p span.no-highlight-keyword-clickable,div.syntax-highlight div.code div.tab-contents div.syntax p span.keyword-clickable,div.syntax-highlight div.code div.tab-contents div.syntax p span.no-highlight-keyword-clickable{transition:var(--syntax-js-transition)}code.syntax-highlight div.code div.tab-contents div.syntax p span.keyword-clickable:hover,code.syntax-highlight div.code div.tab-contents div.syntax p span.no-highlight-keyword-clickable:hover,div.syntax-highlight div.code div.tab-contents div.syntax p span.keyword-clickable:hover,div.syntax-highlight div.code div.tab-contents div.syntax p span.no-highlight-keyword-clickable:hover{color:var(--syntax-js-color-keyword-hover);cursor:pointer}code.syntax-highlight div.code div.tab-contents div.syntax p span.value,code.syntax-highlight div.code div.tab-contents div.syntax p span.value-clickable,div.syntax-highlight div.code div.tab-contents div.syntax p span.value,div.syntax-highlight div.code div.tab-contents div.syntax p span.value-clickable{font-weight:700;color:var(--syntax-js-color-value)}code.syntax-highlight div.code div.tab-contents div.syntax p span.value-clickable,code.syntax-highlight div.code div.tab-contents div.syntax p span.no-highlight-value-clickable,div.syntax-highlight div.code div.tab-contents div.syntax p span.value-clickable,div.syntax-highlight div.code div.tab-contents div.syntax p span.no-highlight-value-clickable{transition:var(--syntax-js-transition)}code.syntax-highlight div.code div.tab-contents div.syntax p span.value-clickable:hover,code.syntax-highlight div.code div.tab-contents div.syntax p span.no-highlight-value-clickable:hover,div.syntax-highlight div.code div.tab-contents div.syntax p span.value-clickable:hover,div.syntax-highlight div.code div.tab-contents div.syntax p span.no-highlight-value-clickable:hover{color:var(--syntax-js-color-value-hover);cursor:pointer}code.syntax-highlight div.code div.tab-contents div.syntax p span.attribute,code.syntax-highlight div.code div.tab-contents div.syntax p span.attribute-clickable,div.syntax-highlight div.code div.tab-contents div.syntax p span.attribute,div.syntax-highlight div.code div.tab-contents div.syntax p span.attribute-clickable{font-weight:700;color:var(--syntax-js-color-attribute)}code.syntax-highlight div.code div.tab-contents div.syntax p span.attribute-clickable,code.syntax-highlight div.code div.tab-contents div.syntax p span.no-highlight-attribute-clickable,div.syntax-highlight div.code div.tab-contents div.syntax p span.attribute-clickable,div.syntax-highlight div.code div.tab-contents div.syntax p span.no-highlight-attribute-clickable{transition:var(--syntax-js-transition)}code.syntax-highlight div.code div.tab-contents div.syntax p span.attribute-clickable:hover,code.syntax-highlight div.code div.tab-contents div.syntax p span.no-highlight-attribute-clickable:hover,div.syntax-highlight div.code div.tab-contents div.syntax p span.attribute-clickable:hover,div.syntax-highlight div.code div.tab-contents div.syntax p span.no-highlight-attribute-clickable:hover{color:var(--syntax-js-color-attribute-hover);cursor:pointer}code.syntax-highlight div.code div.tab-contents div.syntax p span.comment,div.syntax-highlight div.code div.tab-contents div.syntax p span.comment{font-style:italic;color:var(--syntax-js-color-comment)}code.syntax-highlight div.code div.tab-contents div.syntax p span.multi-line-comment,div.syntax-highlight div.code div.tab-contents div.syntax p span.multi-line-comment{font-style:italic;color:var(--syntax-js-color-multi-line-comment)}code.syntax-highlight div.code div.tab-contents div.syntax p span.string,div.syntax-highlight div.code div.tab-contents div.syntax p span.string{color:var(--syntax-js-color-string)}code.syntax-highlight div.code div.tab-contents div.syntax p span.multi-line-string,div.syntax-highlight div.code div.tab-contents div.syntax p span.multi-line-string{color:var(--syntax-js-color-multi-line-string)}.custom-scroll-bars::-webkit-scrollbar{width:12px}.custom-scroll-bars::-webkit-scrollbar-track{-webkit-box-shadow:var(--syntax-js-border-style-scrollbar);box-shadow:var(--syntax-js-border-style-scrollbar)}.custom-scroll-bars::-webkit-scrollbar-thumb{-webkit-box-shadow:var(--syntax-js-border-style-scrollbar);box-shadow:var(--syntax-js-border-style-scrollbar);background:var(--syntax-js-color-white)}.custom-scroll-bars::-webkit-scrollbar-thumb:hover{background-color:var(--syntax-js-color-white)}.custom-scroll-bars::-webkit-scrollbar-thumb:active{background-color:var(--syntax-js-color-lighter-gray)} \ No newline at end of file diff --git a/dist/syntax.min.js b/dist/syntax.min.js index 1e3c716..9a2553b 100644 --- a/dist/syntax.min.js +++ b/dist/syntax.min.js @@ -1,4 +1,4 @@ -/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */ +/*! Syntax.js v2.4.3 | (c) Bunoon 2024 | MIT License */ (function(){function la(){for(var a=r.highlightAllDomElementTypes,b=a.length,c=0;c jSyntax.js - 2.4.2 + 2.4.3 Syntax.js A lightweight, and easy-to-use, JavaScript library for code syntax highlighting! William Troup From 745b2b78d6fc12f5ba9fa09e362f190c32fca64b Mon Sep 17 00:00:00 2001 From: William Troup Date: Mon, 26 Feb 2024 22:01:20 +0000 Subject: [PATCH 2/3] Updates README files. --- README.md | 7 +++++++ README_NUGET.md | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index dbfce95..c96e3b6 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,13 @@ Syntax.js
+

Where can I find the documentation?

+ +All the documentation can be found [here](https://www.william-troup.com/syntax-js/documentation/index.html): +
+
+ +

What browsers are supported?

All modern browsers (such as Google Chrome, FireFox, and Opera) are fully supported. diff --git a/README_NUGET.md b/README_NUGET.md index 299022d..ee9eda5 100644 --- a/README_NUGET.md +++ b/README_NUGET.md @@ -26,6 +26,11 @@ - Tabbing (allows multiple languages to be shown in one tabbed container, which is great for code examples). +## Where can I find the documentation? + +All the documentation can be found [here](https://www.william-troup.com/syntax-js/documentation/index.html): + + ## What browsers are supported? All modern browsers (such as Google Chrome, FireFox, and Opera) are fully supported. From a03546095cc1bc4e047455f708d407ec7f4cdbfb Mon Sep 17 00:00:00 2001 From: William Troup Date: Mon, 26 Feb 2024 22:02:17 +0000 Subject: [PATCH 3/3] Removed the documentation. --- docs/CHANGE_LOG.md | 565 ------------------------ docs/LANGUAGE.md | 35 -- docs/PUBLIC_FUNCTIONS.md | 160 ------- docs/binding/buttons/BUTTONS.md | 23 - docs/binding/language/LANGUAGE.md | 55 --- docs/binding/options/CUSTOM_TRIGGERS.md | 97 ---- docs/binding/options/OPTIONS.md | 48 -- docs/binding/tabs/CUSTOM_TRIGGERS.md | 32 -- docs/binding/tabs/TAB_CONTENTS.md | 52 --- docs/configuration/CUSTOM_TRIGGERS.md | 29 -- docs/configuration/OPTIONS.md | 36 -- 11 files changed, 1132 deletions(-) delete mode 100644 docs/CHANGE_LOG.md delete mode 100644 docs/LANGUAGE.md delete mode 100644 docs/PUBLIC_FUNCTIONS.md delete mode 100644 docs/binding/buttons/BUTTONS.md delete mode 100644 docs/binding/language/LANGUAGE.md delete mode 100644 docs/binding/options/CUSTOM_TRIGGERS.md delete mode 100644 docs/binding/options/OPTIONS.md delete mode 100644 docs/binding/tabs/CUSTOM_TRIGGERS.md delete mode 100644 docs/binding/tabs/TAB_CONTENTS.md delete mode 100644 docs/configuration/CUSTOM_TRIGGERS.md delete mode 100644 docs/configuration/OPTIONS.md diff --git a/docs/CHANGE_LOG.md b/docs/CHANGE_LOG.md deleted file mode 100644 index f6e2a55..0000000 --- a/docs/CHANGE_LOG.md +++ /dev/null @@ -1,565 +0,0 @@ -# Syntax.js - Change Log: - -## Version 2.4.2: - -## Version 2.4.2: -- All hover transition effects now work for hovering, and not hovering, which results in a smoother display. -- Minor updates to the documentation. -- Added a new ":root" variable called "--syntax-js-default-font" (specifies the default font). -- Fixed the "journey.js.nuspec" file including the ".github" folder when NuGet PACK is called. -- Added install instructions into the main README files. -- Added Math injection directly into the main instance. -- Added JSON injection directly into the main instance. - -
- - -## Version 2.4.1: -- Added correct year to all files, and added missing year to all minimized/dist files. -- Fixed HTML files using the wrong formatting for meta, and imports being missing. -- Improved the documentation in the main README files. - -
- - -## Version 2.4.0: -- BREAKING: All ":root" variables now start with "--syntax-js-", which will prevent collisions with other libraries. -- Updated project homepage URL. - -
- - -## Version 2.3.1: -- Comments are now italic by default. -- Added a new binding custom trigger called "onButtonsClosed", which states an event that should be triggered when the buttons are closed. -- Added a new binding custom trigger called "onButtonsOpened", which states an event that should be triggered when the buttons are closed. -- Minor documentation improvements. - -
- - -## Version 2.3.0: - -#### **Languages:** -- Added a new JSON property called "wordRegEx", which states the Regular Expression that is used for looking up keywords, values, attributes, and tags (optional, use %word% to state the lookup). - -#### **Binding Options - Custom Triggers:** -- Added a new binding custom trigger called "onBeforeRenderComplete", which states an event that should be triggered before an element is rendered. - -#### **Configuration Options:** -- Added new configuration option "allowHtmlInTextDisplay" (defaults to true), which states if HTML can be used in the text displays (buttons, tabs, descriptions, etc). - -#### **General Improvements:** -- Double-clicking in the description container (when tabs are used) will now select all the code (if the setting is turned on). - -### **CSS:** -- Renamed some of the ":root" variables so they are easier to read. -- Improved browser support for the no-text selection CSS. - -#### **Fixes:** -- Fixed a fault that prevented non-highlighted keywords and values from being rendered correctly when "highlightKeywords" and "highlightValues" were set to false. -- Fixed a fault that caused the custom scroll bars to now show the right border color. - -
- - -## Version 2.2.0: - -#### **New Features:** -- Added "description" support for the binding attribute "data-syntax-tab-contents" options. When set, this will show a description panel next to the code. - -#### **Languages:** -- Added support for the CSS styling language (importable file). -- The JSON property "comment" is now optional. -- The RegEx used for searching for keywords, values, attributes, and tags, is now much more accurate. - -#### **Configuration Options - Custom Triggers:** -- Added a new configuration custom trigger called "onBeforeRender", which states an event that should be triggered before any DOM elements are rendered (when found). -- Added a new configuration custom trigger called "onAfterRender", which states an event that should be triggered after any DOM elements are rendered (when found). - -### **CSS:** -- Added new ":root" variable "--container-background-color-description", which states the background color to use for the description panel (for tabs). -- Added new ":root" variable "--container-border-color-description", which states the border color to use for the description panel (for tabs). - -#### **Documentation:** -- Some more of the documentation has been renamed and moved into category folders (the filenames were getting confusing). - -
- - -## Version 2.1.1: -- Added an extra check when processing the attribute "data-syntax-tab-contents" options. - -
- - -## Version 2.1.0: - -#### **New Features:** -- Added full binding support for "data-syntax-tab-contents", which allows some configuration to be set per tab. - -#### **Binding Options Tab Contents:** -- Added a new binding option called "title", which states the title to use for a Tab (defaults to null, which forces the language name to be used). - -#### **Binding Options Tab Contents - Custom Triggers:** -- Added a new binding custom trigger called "onOpen", which states an event that should be triggered when a tab is opened (passes to the language to the event). - -### **CSS:** -- Renamed the CSS class "label" to "language-label" (much clearer). - -#### **Documentation:** -- Minor documentation improvements. -- Added new binding documentation file "binding/tabs/TAB_CONTENTS.md". -- Added new binding documentation file "binding/tabs/CUSTOM_TRIGGERS.md". -- Some of the documentation has been renamed and moved into category folders (the filenames were getting confusing). - -#### **General Improvements:** -- Code cleanups and refactoring to make things clearer. - -
- - -## Version 2.0.1: -- Minor documentation improvements. - -
- - -## Version 2.0.0: - -#### **New Features:** -- Added tabbing support! This feature allows you to render languages under one tabbed container (which is great for showing code examples). - -#### **Languages:** -- Added support for the Powershell programming language (importable file). -- Added support for the Dart programming language (importable file). -- Added support for the Delphi programming language (importable file). -- Added support for the Lua programming language (importable file). - -### **CSS:** -- All buttons (and tabs) are now rendered as buttons instead of divs (this includes minor CSS changes). -- Added new ":root" variable "--button-hover-background-color", which states the background color to use for the buttons when hovered (including custom ones, unless overridden). -- Added new ":root" variable "--button-hover-text-color", which states the text color to use for the buttons when hovered (including custom ones, unless overridden). - -#### **Documentation:** -- Added a new documentation file "BINDING_LANGUAGE.md", which states how the "data-syntax-language" binding attribute is used. -- Examples are now shown on all documentation pages to make things easier when starting with Syntax.js. - -
- - -## Version 1.9.0: - -#### **New Features:** -- Added "Attributes" support for languages, which allows attributes (for markup languages only) to be rendered using a different CSS class. - -#### **Binding Options:** -- Added a new binding option called "highlightAttributes", which states if attributes should be highlighted (defaults to true). - -#### **Binding Options - Custom Triggers:** -- Added a new binding custom trigger called "onAttributeClicked", which states an event that should be triggered when a attribute is clicked. -- Added a new binding custom trigger called "onAttributeRender", which states an event that should be triggered when a attribute is rendered. - -#### **Documentation:** -- Fixed documentation errors in the "BINDING_OPTIONS_CUSTOM_TRIGGERS.md" file. - -
- - -## Version 1.8.2: -- Added support for the PHP programming language (importable file). -- Minor improvement to the dark-mode theme to make sure the language label stands out a little more. -- Grammar and spelling corrections across the project. -- More internal renaming to make things a bit clearer. -- Unknown language types, and non-markup-based languages, are now encoded before the main render is done (so special characters show up correctly). -- Moved the configuration option "buttonsVisible" to the binding options (so it can be set per DOM element). -- Moved the configuration option "maximumButtons" to the binding options (so it can be set per DOM element). -- Fixed a fault that caused the buttons to be hidden (and could not be shown) when the total buttons are smaller (or equal) to "maximumButtons" and "buttonsVisible" is false. - -
- - -## Version 1.8.1: -- Minor error logging improvements (uses less code and can be re-used as needed). -- Internal refactoring to make some of the code match up to the names of the sections. - -
- - -## Version 1.8.0: - -#### **Public Functions:** -- Added new public function "getCode()", which is used to return all of the code inside an element (without rendering colors). - -#### **Languages:** -- Added support for the Perl programming language (importable file). -- Added support for the Bash scripting language (importable file). -- Added support for the Kotlin programming language (importable file).\ -- Added support for the R programming language (importable file). -- Added support for the Matlab programming language (importable file). -- Added support for the Scala programming language (importable file). -- Moved some of the keywords for the supported languages into "values". -- Multi-line comments are now processed before single-line comments. - -#### **Binding Options:** -- Added a new binding option called "doubleClickToSelectAll", which states that double-clicking in one of the containers (numbers, code) will select all the code (defaults to true). -- Added a new binding option called "languageLabelCasing", which states the casing to use for the language label (defaults to "uppercase"). - -### **CSS:** -- Added new ":root" variable "--button-background-color", which will allow you to set the background color of the buttons. -- Added new ":root" variable "--button-text-color", which will allow you to set the text color of the buttons. -- Massively improved the theme "dark-mode" (much cleaner and modern). -- Shared colors now reference the original base ":root" variable. - -#### **General Improvements:** -- Double-clicking in the code container will now select all the code (if the new setting is turned on). -- Removed a lot of duplicated code. -- Lots of clean-ups across the HTML testing files. - -
- - -## Version 1.7.3: -- The custom button "onClick" event now accepts the code as a parameter (see documentation). -- Fixed a fault that caused the wrong events to be assigned to the custom buttons when there is more than one. -- Added a new binding option called "removeDuplicateBlankLines" (defaults to true), which will remove all duplicate blank lines. -- Fixed some bad documentation. -- Added a new CSS class "multi-line-comment", which is used for multi-line comments. -- Added a new CSS class "multi-line-string", which is used for multi-line strings. - -
- - -## Version 1.7.2: -- Added "multiLineComment" support for Markup languages (HTML, for example). -- Minor code cleanups to make things a bit more readable. - -
- - -## Version 1.7.1: -- More documentation improvements. -- Added shortcut files for quickly packing/publishing the project. - -
- - -## Version 1.7.0: - -#### **New Features:** -- Markup language support! - -### **Highlighting:** -- If there is no code available for highlighting, the element is skipped and left as is (an error log is thrown when safeMode is off). - -#### **Languages:** -- Added support for the HTML markup language (importable file). -- Added a new JSON property called "isMarkUp", which states if the language is a markup language (processed slightly differently). - -#### **Documentation:** -- More documentation fixes and improvements. - -#### **Fixes:** -- Fixed a fault that caused comments and strings from other elements to be added to others. - -
- - -## Version 1.6.2: -- Internal code cleanup to make object parsing a little clearer. -- More documentation fixes. -- Minor CSS comment updates. - -
- - -## Version 1.6.1: -- Fixed some of the documentation files that were pointing at the wrong files. - -
- - -## Version 1.6.0: - -#### **New Features:** -- Added "Values" support for languages, which allows values (such as "true" and "false") to be rendered using a different CSS class. -- Added opening/closing support for the buttons shown in the top right corner (along with configurable options). - -#### **Binding Options:** -- Added a new binding option called "highlightValues", which states if values should be highlighted (defaults to true). - -#### **Binding Options - Custom Triggers:** -- Added a new binding custom trigger called "onValueClicked", which states an event that should be triggered when a value is clicked. -- Added a new binding custom trigger called "onValueRender", which states an event that should be triggered when a value is rendered. - -### **Themes:** -- All CSS colors are now root variables, allowing full themes to be generated without referring CSS class names. -- Added a new folder under "dist" called "themes", which contains a new dark-mode (works based on the browser configuration). - -#### **Configuration Options:** -- Added new configuration option "maximumButtons" (defaults to 2), which states the maximum number of buttons that can be shown before the opening/closing button is shown. -- Added new configuration option "buttonsVisible" (defaults to true), which states if the buttons are open (visible). -- Added new configuration option "buttonsOpenerText" (defaults to "<"), which states the text that should be used for the open buttons button. -- Added new configuration option "buttonsCloserText" (defaults to ">"), which states the text that should be used for the close buttons button. - -### **CSS:** -- Renamed the CSS class "number" to "numbers". -- By default, the buttons are no longer bold. -- By default, the language label is now bold and uses a grey font color. - -#### **Documentation:** -- Documentation renames and cleanups to make things clearer. - -#### **Fixes:** -- Fixed the buttons wrapping down to the next line and looking strange on smaller screens. - -
- - -## Version 1.5.1: -- Removed some unneeded CSS from the testing CSS file (used in the testing HTML files). -- Fixed a security risk when injecting titles into a new window (for printing). - -
- - -## Version 1.5.0: - -#### **New Features:** -- Added full language alias support (allows alias names to be added that point to a specific language name). -- Added full custom buttons support via a new attribute called "data-syntax-buttons". - -#### **Languages:** -- Added support for the F# programming language (importable file). -- Added support for the Rust programming language (importable file). - -#### **Public Functions:** -- Added new public function "addAlias()", which is used to add a new language alias. -- Added new public function "removeAlias()", which is used to remove a language alias. -- Added new public function "getAlias()", which is used to get a language alias. -- Added new public function "getAliases()", which is used to get all language aliases. -- Renamed the public function "getAllLanguages" to "getLanguages()". -- Renamed the public function "getAllElementsHighlighted()" to "getElementsHighlighted()". - -#### **Documentation:** -- More documentation improvements to show how some of the new features are used. - -#### **General Improvements:** -- NUSPEC file improvements for NuGet.org submissions. - -#### **Fixes:** -- Fixed a fault that prevented the public function "removeLanguage()" from returning a valid flag when a language has been removed. -- Fixed package description and keywords being inconsistent with the main repository. - -
- - -## Version 1.4.0: - -#### **Languages:** -- The binding attribute "data-syntax-language" can now be set to "unknown", which will force the layout to still be drawn, but no highlighting will be applied. -- Added a new JSON property called "keywordsCasing", which states what casing should be used for the keywords when rendered (optional, defaults to "initial", accepts "uppercase" and "lowercase"). - -#### **Binding Settings:** -- Added a new setting called "padLineNumbers", which states if the line numbers should be padded (defaults to false). - -#### **Configuration Options:** -- Added new configuration option "highlightAllDomElementTypes" (defaults to "div" and "code"), which states the element types that should be looked up when rendering. - -#### **General Improvements:** -- Double-clicking the numbers column (when enabled) will now highlight all the code in the right panel. -- The "data-syntax-options" attribute now can accept a function name to get the required configuration. - -#### **Fixes:** -- Fixed a fault that prevented the "onKeywordClicked" custom trigger from being assigned to keywords when "highlightKeywords" is set to false. - -
- - -## Version 1.3.0: - -#### **New Features:** -- Added multi-line string support for languages that support them (such as C#). -- String searching now uses an improved RegEx for more accurate searches. -- SafeMode support and new global library configuration options. - -#### **Public Functions:** -- Added new public function "setConfiguration()", which will set up global configuration options for the whole library. -- The public function "getAllElementsHighlighted()" now returns a cloned version of "_elements" instead of a referenced version. -- The public functions "getLanguage()" and "getAllLanguages()" now return a cloned version of the language objects. - -#### **Configuration Option:** -- Added new configuration option "safeMode" (defaults to true), which allows all errors to be ignored (all valid renders will still be displayed. - -#### **Languages:** -- All language files (under "dist/languages") now pass false for the "triggerRender" parameter, as the library will render automatically once the DOM is loaded. - -#### **General Improvements:** -- Removed some code that was no longer needed. -- The numbers column can no longer have its numbers selected (CSS controlled). -- The buttons (top right) can no longer have their text selected (CSS controlled). -- The error log shown when a language is not available is now only shown when "safeMode" is disabled. - -#### **Documentation:** -- Renamed "OPTIONS.md" to "BINDING_OPTIONS.md" (which states all the options that can be used for the "data-syntax-options" binding attribute). -- Added a new version of "OPTIONS.md", which is now used to show all the configurations that can be used for the public function "setConfiguration()". -- Minor documentation updates to make things a bit clearer. - -#### **Fixes:** -- Fixed the public function "destroyAll()" reset the "_elements" variable to the wrong type. - -
- - -## Version 1.2.0: - -#### **New Features:** -- Printing support is now available as a configurable button (on by default). -- A new language label is now shown in the UI to state what language is being shown. - -#### **General Improvements:** -- Redesigned the layout for the button(s) shown in the top left of the display (minor CSS class name changes), along with the new language label. -- Added new BootStrap testing files. - -#### **Languages:** -- Added a new JSON property called "friendlyName", which states the friendly name to be shown in the language label. -- The JSON property "keywords" now accepts either an array of strings or a space-separated string. - -#### **Settings:** -- Added a new setting called "showLanguageLabel", which states if the language label should be shown (defaults to true). -- Added a new setting called "showPrintButton", which states if the Print button should be shown (defaults to true). -- Added a new setting called "printButtonText", which states the text that should be shown for the new Print button (defaults to "Print"). - -#### **Custom Triggers:** -- Added a new custom trigger "onPrint", which is called when the "Print" button is clicked. - -#### **Fixes:** -- Fixed the default color for "code" DOM elements reverting to the color set in Bootstrap. - -
- - -## Version 1.1.0: - -#### **General Improvements:** -- The render() method now only scans for "div" and "code" DOM element types (faster). -- When a specific language is not supported, a new error log is shown in the console. - -#### **Custom Triggers:** -- Added new custom trigger "onKeywordRender", which is called when a keyword is rendered (before main render completion). -- Added new custom trigger "onStringRender", which is called when a string is rendered (before main render completion). -- Added new custom trigger "onCommentRender", which is called when a comment is rendered (before main render completion). - -#### **Documentation:** -- Fixed documentation missing references that prevented the library from working properly. -- Improved the README.md and README_NUGET.md documentation. - -
- - -## Version 1.0.0: - -#### **Languages:** -- Case Sensitive: Added a new language property "caseSensitive" (defaults to true) which states if the keyword matching is case sensitive. -- Added support for the TypeScript programming language (importable file). - -#### **Settings:** -- Added a new setting called "highlightComments", which states if comments should be highlighted (defaults to true). -- Added a new setting called "highlightStrings", which states if strings should be highlighted (defaults to true). -- Added a new setting called "highlightKeywords", which states if keywords should be highlighted (defaults to true). - -#### **Public Functions:** -- Renamed the public function "findAndBuildNewElements()" to "highlightAll()". -- Renamed the public function "getRenderedElements()" to "getAllElementsHighlighted()". -- Added new public function "removeLanguage()", which will remove a specific language that can be rendered by name. -- Added new public function "getAllLanguages()", which will return the object that contains all the language details. -- Added new public function "highlightElement()", which will render a specific DOM element (accepts either the element or the ID of the element). -- Added new public function "getLanguage()", which will return the details for a specific language (by name). -- Renamed the public function "destroy()" to "destroyAll()". -- Added a new version of the public function "destroy()", which will revert a specific element to its original HTML (minus the syntax attributes). - -#### **Custom Triggers:** -- Renamed the custom trigger "onRender" to "onRenderComplete". - -#### **UI Improvements:** -- The numbers column is now hidden by default on smaller screens (and the code line will now wrap). - -#### **Fixes:** -- Fixed links to missing documentation in the main README.md and README_NUGET.md files. -- Fixed some grammar mistakes. -- Fixed a fault that prevented the original destroy() public function (now destroyAll()) from clearing down the elements list. - -
- - -## Version 0.8.0: -- Added a new setting called "showLineNumbers", which states if the line numbers should be shown (defaults to true). -- Renamed the public function "buildNewSyntaxElements" to "findAndBuildNewElements()". -- Added new public function "destroy()", which will revert all rendered elements to their original HTML (minus the syntax attributes). - -
- - -## Version 0.7.0: -- Added NuGet.org Nuget package support via a new nuspec file. -- The default language "JavaScript" is no longer built-in, and must be imported like all other languages. -- Updated the project description. -- Added support for the C, JavaScript, and MS-SQL programming languages (importable files). - -
- - -## Version 0.6.0: -- Added support for the Swift and Visual Basic programming languages (importable files). -- Added new public function "getRenderedElements()", which returns all the elements that have been rendered. -- Added indentation support! -- Minor code correction for handling empty strings. -- Added a new setting called "removeBlankLines", which states if all the blank lines should be removed (defaults to false). -- Added some very light borders around the Numbers and Syntax DOM containers. -- Added a default font and font size via the SCSS/CSS. - -
- - -## Version 0.5.0: -- Added support for the C++ and Java programming languages (importable files). -- Fixed a fault that caused parameters to be parsed for custom triggers when they were not set. -- Fixed the default language containing the "*" symbol in the keywords. -- Renamed the root variable "--color-variable" to "--color-keyword". -- Added a new custom trigger "onKeywordClicked", which is fired when a keyword is clicked. - -
- - -## Version 0.4.0: -- Removed public function "setOptions()", as it's not needed due to the options attribute. -- Removed the custom trigger "onOptionsUpdated", as it's not needed anymore. -- Added support to set the custom triggers via the "data-syntax-options" attribute options. -- The language property "multiLineComment" is now optional, as some languages don't require special characters for multi-line comments. -- Added support for the Python, Go, and Ruby programming languages (importable files). - -
- - -## Version 0.3.0: -- Added Code/Pre element rendering support. -- Added options attribute "data-syntax-options" support, which will override the default options per code element rendered. -- Fixed a class name setting issue that caused a random space to appear. -- Added a new custom trigger "onCopy", which is fired when the "Copy" button for a syntax element is pressed. - -
- - -## Version 0.2.0: -- Added a border around the code container (uses root variables for easy changing). -- Increased the padding slightly for the "Copy" button. -- Added background color to the code syntax container (next to the numbers) and added a border-radius. -- Added new public function "addLanguage()", which will add a new language to the library and will auto-render DOM elements found for that language. -- Added all missing keywords for the built-in language "JavaScript". -- Added C# language support via an importable file. - -
- - -## Version 0.1.0: -- Everything :) \ No newline at end of file diff --git a/docs/LANGUAGE.md b/docs/LANGUAGE.md deleted file mode 100644 index 631d81e..0000000 --- a/docs/LANGUAGE.md +++ /dev/null @@ -1,35 +0,0 @@ -# Syntax.js - Language: - -Below is the format that is expected for a language object when calling "addLanguage()". - -| Type: | Name: | Description: | -| --- | --- | --- | -| *Object* | keywords | The keywords of the language (can be either an array of strings, or a space separated string). | -| *Object* | values | The values (assigning or conditions) of the language (can be either an array of strings, or a space separated string). | -| *Object* | attributes | The values of the language (can be either an array of strings, or a space separated string) and are only set when "isMarkUp" is true. | -| *string* | comment | The start character(s) use for a single line comment (optional). | -| *string[]* | multiLineComment | The start/end characters used to define multi-line comments (optional). | -| *boolean* | caseSensitive | States if the lookups for keywords are case sensitive (defaults to true). | -| *string* | friendlyName | The friendly name to show for the language (optional). | -| *string* | keywordsCasing | States what casing should be shown for the keywords when rendered (optional, defaults to "initial", accepts "uppercase" and "lowercase"). | -| *boolean* | isMarkUp | States if the language is a markup based language (defaults to false). | -| *string* | wordRegEx | The Regular Expression that is used for looking up keywords, values, attributes, and tags (optional, use %word% to state the lookup). | - -
- -## Example: - -```markdown - -``` \ No newline at end of file diff --git a/docs/PUBLIC_FUNCTIONS.md b/docs/PUBLIC_FUNCTIONS.md deleted file mode 100644 index 21db068..0000000 --- a/docs/PUBLIC_FUNCTIONS.md +++ /dev/null @@ -1,160 +0,0 @@ -# Syntax.js - Functions: - -Below is a list of all the public functions that can be called from the Syntax.js instance. -
-
- - -## Highlighting: - -### **highlightAll()**: -Finds all new code elements and renders them. -
-***Fires***: onRenderComplete -
-***Returns***: '*Object*' - The Syntax.js class instance. - -### **highlightElement( *elementOrId* )**: -Renders a specific DOM element. -
-***Fires***: onRenderComplete -
-***Parameter: name***: '*Object*' - The element ID, or the element itself. -
-***Returns***: '*Object*' - The Syntax.js class instance. - -### **getElementsHighlighted()**: -Returns the elements that have been detected and rendered. -
-***Returns***: '*Object[]*' - An array containing the rendered DOM elements. - -### **getCode( *elementId* )**: -Returns the code inside a specific element (without rendering colors). -
-***Parameter: elementId***: '*string*' - The element ID. -
-***Returns***: '*string*' - The code in the element. -
-
- - -## Destroying: - -### **destroy( *elementId* )**: -Reverts a Syntax element back to its original state (without render attributes). -
-***Parameter: elementId***: '*string*' - The ID of the DOM element to destroy. -
-***Returns***: '*Object*' - The Syntax.js class instance. - -### **destroyAll()**: -Reverts all rendered Syntax elements back to their original state (without render attributes). -
-***Returns***: '*Object*' - The Syntax.js class instance. -
-
- - -## Languages: - -### **addLanguage( *name*, *languageDetails*, *[triggerRender]* )**: -Adds a new language that can be rendered. -
-***Fires***: onRenderComplete -
-***Parameter: name***: '*string*' - The name of the language. -
-***Parameter: languageDetails***: '*Object*' - The language details (refer to ["Language"](LANGUAGE.md) documentation for properties). -
-***Parameter: [triggerRender]***: '*boolean*' - States if new language DOM elements available should be rendered. -
-***Returns***: '*boolean*' - States if the language has been added. - -### **removeLanguage( *name* )**: -Removes a language that can be rendered. -
-***Parameter: name***: '*string*' - The name of the language. -
-***Returns***: '*boolean*' - States if the language has been removed. - -### **getLanguage( *name* )**: -Returns the language details (by name) that can be rendered. -
-***Parameter: name***: '*string*' - The name of the language. -
-***Returns***: '*Object*' - The language details. - -### **getLanguages()**: -Returns all the languages that can be rendered. -
-***Returns***: '*Object*' - The object that contains the languages. -
-
- - -## Language Aliases: - -### **addAlias( *alias*, *language*, *[triggerRender]* )**: -Adds a new language alias. -
-***Fires***: onRenderComplete -
-***Parameter: alias***: '*string*' - The name of the alias. -
-***Parameter: language***: '*string*' - The name of the language. -
-***Parameter: [triggerRender]***: '*boolean*' - States if new language alias DOM elements available should be rendered. -
-***Returns***: '*boolean*' - States if the alias has been added. - -### **removeAlias( *alias* )**: -Removes a language alias. -
-***Parameter: alias***: '*string*' - The name of the alias. -
-***Returns***: '*boolean*' - States if the alias has been removed. - -### **getAlias( *alias* )**: -Returns a language alias. -
-***Parameter: alias***: '*string*' - The name of the alias. -
-***Returns***: '*Object*' - The name of the language. - -### **getAliases()**: -Returns all the language aliases. -
-***Returns***: '*Object*' - The object that contains the aliases. -
-
- - -## Configuration: - -### **setConfiguration( *newOptions* )**: -Sets the specific configuration options that should be used. -
-***Parameter: newOptions***: '*Options*' - All the configuration options that should be set (refer to ["Configuration Options"](configuration/OPTIONS.md) documentation for properties). -
-***Returns***: '*Object*' - The Syntax.js class instance. -
-
- - -## Additional Data: - -### **getVersion()**: -Returns the version of Syntax.js. -
-***Returns***: '*string*' - The version number. -
-
- - -## Example: - -```markdown - -``` \ No newline at end of file diff --git a/docs/binding/buttons/BUTTONS.md b/docs/binding/buttons/BUTTONS.md deleted file mode 100644 index a95d61a..0000000 --- a/docs/binding/buttons/BUTTONS.md +++ /dev/null @@ -1,23 +0,0 @@ -# Syntax.js - Binding Buttons: - -Below are all the JSON properties that can be passed in the "data-syntax-buttons" binding attribute for a DOM element (within an array). -
-
- -| Type: | Name: | Description: | -| --- | --- | --- | -| *string* | text | States the text that should be shown on the button. | -| *Object* | onClick | States the custom event that should be triggered when the button is clicked (the code is passed to the event). | -| *string* | className | States a CSS class name to apply to the button (optional). | -
- - -## Binding Example: - -```markdown - -
-        var something = true;
-    
-
-``` \ No newline at end of file diff --git a/docs/binding/language/LANGUAGE.md b/docs/binding/language/LANGUAGE.md deleted file mode 100644 index 8377351..0000000 --- a/docs/binding/language/LANGUAGE.md +++ /dev/null @@ -1,55 +0,0 @@ -# Syntax.js - Binding Language: - -Below are all the options that can be used for the "data-syntax-language" binding attribute for a DOM element. -
-
- -| Language: | Description: | -| --- | --- | -| unknown | States if the language is unknown (causes the main display to render, but no highlighting is applied). | -| tabbed | States that the display language is a tabbed display, showing child languages as tabs (children need to have the attribute "data-syntax-tab-contents"). | -| *language* | Any language that is supported (see the "dist/languages" for all available). | -
- - -## Binding Example: *language*: - -```markdown - -
-        var something = true;
-    
-
-``` -
- - -## Binding Example: Unknown - -```markdown - -
-        var something = true;
-    
-
-``` -
- - -## Binding Example: Tabbed - -```markdown - -
-
-            var something = true;
-        
-
- -
-
-            
-
-
-
-``` \ No newline at end of file diff --git a/docs/binding/options/CUSTOM_TRIGGERS.md b/docs/binding/options/CUSTOM_TRIGGERS.md deleted file mode 100644 index d19e20b..0000000 --- a/docs/binding/options/CUSTOM_TRIGGERS.md +++ /dev/null @@ -1,97 +0,0 @@ -# Syntax.js - Binding Options - Custom Triggers: - -Below is a list of all the custom triggers supported in the "data-syntax-options" binding attribute for DOM elements. -
-
- - -## For Rendering: - -### options.onBeforeRenderComplete( *element* ): -Fires before the rendering of the syntax of an element. -
-***Parameter:*** element: '*object*' - The DOM element that is going to be rendered. - -### options.onRenderComplete( *element* ): -Fires when the rendering of the syntax for an element is complete. -
-***Parameter:*** element: '*object*' - The DOM element that was rendered. - -### options.onKeywordRender( *keyword* ): -Fires when a keyword is rendered. -
-***Parameter:*** keyword: '*string*' - The keyword that was rendered. - -### options.onValueRender( *value* ): -Fires when a value is rendered. -
-***Parameter:*** value: '*string*' - The value that was rendered. - -### options.onAttributeRender( *attribute* ): -Fires when a attribute is rendered. -
-***Parameter:*** attribute: '*string*' - The attribute that was rendered. - -### options.onStringRender( *string* ): -Fires when a string is rendered. -
-***Parameter:*** string: '*string*' - The string that was rendered. - -### options.onCommentRender( *comment* ): -Fires when a comment is rendered. -
-***Parameter:*** comment: '*string*' - The comment that was rendered. - - -
- -## For Code: - -### options.onCopy( *code* ): -Fires when the "Copy" button is pressed. -
-***Parameter:*** code: '*string*' - The string that was copied to the clipboard. - -### options.onKeywordClicked( *keyword* ): -Fires when a keyword is clicked in the code syntax. -
-***Parameter:*** keyword: '*string*' - The keyword that was clicked. - -### options.onValueClicked( *value* ): -Fires when a value is clicked in the code syntax. -
-***Parameter:*** value: '*string*' - The value that was clicked. - -### options.onAttributeClicked( *attribute* ): -Fires when a attribute is clicked in the code syntax. -
-***Parameter:*** attribute: '*string*' - The attribute that was clicked. - -### options.onPrint( *code* ): -Fires when the "Print" button is pressed. -
-***Parameter:*** code: '*string*' - The string that was sent to the printer. - - -
- -## For Buttons: - -### options.onButtonsClosed(): -Fires when the buttons are closed. - -### options.onButtonsOpened(): -Fires when the buttons are opened. - -
- - -## Binding Example: - -```markdown - -
-        var something = true;
-    
-
-``` \ No newline at end of file diff --git a/docs/binding/options/OPTIONS.md b/docs/binding/options/OPTIONS.md deleted file mode 100644 index 65e3aa2..0000000 --- a/docs/binding/options/OPTIONS.md +++ /dev/null @@ -1,48 +0,0 @@ -# Syntax.js - Binding Options: - -Below are all the JSON properties that can be passed in the "data-syntax-options" binding attribute for a DOM element. - - -## Standard Options: -
- -| Type: | Name: | Description: | -| --- | --- | --- | -| *boolean* | showCopyButton | States if the copy button should be added (defaults to true). | -| *boolean* | removeBlankLines | States if all blank lines should be removed (defaults to false). | -| *boolean* | showLineNumbers | States if the line numbers are shown (defaults to true). | -| *boolean* | highlightKeywords | States if the keywords should be highlighted (defaults to true). | -| *boolean* | highlightValues | States if the values should be highlighted (defaults to true). | -| *boolean* | highlightAttributes | States if the attributes should be highlighted (defaults to true). | -| *boolean* | highlightStrings | States if the strings should be highlighted (defaults to true). | -| *boolean* | highlightComments | States if the comments should be highlighted (defaults to true). | -| *boolean* | showLanguageLabel | States if the language label should be shown or not (defaults to true). | -| *boolean* | showPrintButton | States if the print button should be added (defaults to true). | -| *boolean* | padLineNumbers | States if the line numbers should be shown as "01" instead of "1" (defaults to false). | -| *boolean* | removeDuplicateBlankLines | States if duplicate blank lines should be removed (defaults to true). | -| *boolean* | doubleClickToSelectAll | States if double-clicking in the containers selects all of the code (defaults to true). | -| *string* | languageLabelCasing | States what casing should be used for the language label (optional, defaults to "lowercase", accepts "initial" and "lowercase"). | -| *boolean* | buttonsVisible | States if the buttons are open (visible). Defaults to true. | -| *number* | maximumButtons | States the maximum buttons that can be shown before the opening/closing button is shown (defaults to 2). | -
- - -## String Options: -
- -| Type: | Name: | Description: | -| --- | --- | --- | -| *string* | copyButtonText | The text that should be displayed for the "Copy" button. | -| *string* | printButtonText | The text that should be displayed for the "Print" button. | -
- - -## Binding Example: - -```markdown - -
-        var something = true;
-    
-
-``` \ No newline at end of file diff --git a/docs/binding/tabs/CUSTOM_TRIGGERS.md b/docs/binding/tabs/CUSTOM_TRIGGERS.md deleted file mode 100644 index 6c7f9f3..0000000 --- a/docs/binding/tabs/CUSTOM_TRIGGERS.md +++ /dev/null @@ -1,32 +0,0 @@ -# Syntax.js - Binding Tab Content Options - Custom Triggers: - -Below is a list of all the custom triggers supported in the "data-syntax-tab-contents" binding attribute for DOM elements. -
-
- - -### options.onOpen( *language* ): -Fires when a tab is opened. -
-***Parameter:*** language: '*string*' - The language tab that was opened. - -
- - -## Binding Example: - -```markdown - -
-
-            var something = true;
-        
-
- -
-
-            
-
-
-
-``` \ No newline at end of file diff --git a/docs/binding/tabs/TAB_CONTENTS.md b/docs/binding/tabs/TAB_CONTENTS.md deleted file mode 100644 index 2728b97..0000000 --- a/docs/binding/tabs/TAB_CONTENTS.md +++ /dev/null @@ -1,52 +0,0 @@ -# Syntax.js - Binding Tab Content Options: - -Below are all the JSON properties that can be passed in the "data-syntax-tab-contents" binding attribute for a DOM element. - - -## String Options: -
- -| Type: | Name: | Description: | -| --- | --- | --- | -| *string* | title | The title that should be used for the tab (defaults to null, which will use the default language name). | -| *string* | description | The description that should be displayed under the tabs, and above the code (defaults to null). | -
- - -## Binding Example: Without Options: - -```markdown - -
-
-            var something = true;
-        
-
- -
-
-            
-
-
-
-``` -
- - -## Binding Example: With Options - -```markdown - -
-
-            var something = true;
-        
-
- -
-
-            
-
-
-
-``` \ No newline at end of file diff --git a/docs/configuration/CUSTOM_TRIGGERS.md b/docs/configuration/CUSTOM_TRIGGERS.md deleted file mode 100644 index 690d387..0000000 --- a/docs/configuration/CUSTOM_TRIGGERS.md +++ /dev/null @@ -1,29 +0,0 @@ -# Syntax.js - Configuration - Options - Custom Triggers: - -Below is a list of all the custom triggers supported in the configuration options. -
-
- - -### Rendering: - -### options.onBeforeRender(): -Fires before the DOM elements are rendered (if any are found). - -### options.onAfterRender(): -Fires after the DOM elements are rendered (if any are found). - - -
- - -## Example: -
- -```markdown - -``` \ No newline at end of file diff --git a/docs/configuration/OPTIONS.md b/docs/configuration/OPTIONS.md deleted file mode 100644 index 2ab9f8e..0000000 --- a/docs/configuration/OPTIONS.md +++ /dev/null @@ -1,36 +0,0 @@ -# Syntax.js - Configuration - Options: - -Below are all the configuration options that can be passed to the "setConfiguration()" public function. - - -### Options: -
- -| Type: | Name: | Description: | -| --- | --- | --- | -| *boolean* | safeMode | States if safe-mode is enabled (errors will be ignored and logged only, defaults to true). | -| *Object* | highlightAllDomElementTypes | The DOM element types to lookup (can be either an array of strings, or a space separated string, and defaults to "div" and "code"). | -| *boolean* | allowHtmlInTextDisplay | States if HTML can be used for text displays, i.e. Tabs, Descriptions, etc (defaults to true). | -
- - -### Options - Strings: -
- -| Type: | Name: | Description: | -| --- | --- | --- | -| *string* | buttonsOpenerText | States the text that should be used for the open buttons button (defaults to "<"). | -| *string* | buttonsCloserText | States the text that should be used for the close buttons button (defaults to ">"). | -
- - -## Example: -
- -```markdown - -``` \ No newline at end of file