Skip to content

Commit

Permalink
Merge pull request #42 from williamtroup/2.4.2
Browse files Browse the repository at this point in the history
2.4.2
  • Loading branch information
William Troup authored Feb 6, 2024
2 parents 7621a05 + 95a62e5 commit 79a103a
Show file tree
Hide file tree
Showing 39 changed files with 204 additions and 118 deletions.
41 changes: 29 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.1-blue)](https://www.npmjs.com/package/jsyntax.js)
[![nuget](https://img.shields.io/badge/nuget-v2.4.1-purple)](https://www.nuget.org/packages/jSyntax.js/)
[![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/)
[![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://github.com/williamtroup)
[![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://www.william-troup.com/)
</h1>

> <p align="center">A lightweight, and easy-to-use, JavaScript library for code syntax highlighting!</p>
> <p align="center">v2.4.1</p>
> <p align="center">v2.4.2</p>
<br />
![Syntax.js](docs/images/main.png)
Expand All @@ -36,18 +36,21 @@ Syntax.js
<br />
<br />


<h1>What browsers are supported?</h1>

All modern browsers (such as Google Chrome, FireFox, and Opera) are fully supported.
<br>
<br>


<h1>What are the most recent changes?</h1>

To see a list of all the most recent changes, click [here](docs/CHANGE_LOG.md).
To see a list of all the most recent changes, click [here](https://www.william-troup.com/syntax-js/documentation/recent-changes.html).
<br>
<br>


<h1>What languages are supported by default?</h1>

- Bash
Expand Down Expand Up @@ -80,6 +83,20 @@ To see a list of all the most recent changes, click [here](docs/CHANGE_LOG.md).
<br>
<br>


<h1>How do I install Syntax.js?</h1>

You can install the library with npm into your local modules directory using the following command:

```markdown
npm install jsyntax.js
```

Or, you can download the latest zipped up version [here](https://www.william-troup.com/syntax-js/download.html).
<br>
<br>


<h1>How do I get started?</h1>

To get started using Syntax.js, do the following steps:
Expand Down Expand Up @@ -162,13 +179,13 @@ Make sure you include the "DOCTYPE html" tag at the top of your HTML, as follows

To see a list of all the available binding languages you can use for "data-syntax-language", click [here](docs/binding/language/LANGUAGE.md).

To see a list of all the available binding options you can use for "data-syntax-options", click [here](docs/binding/options/OPTIONS.md).
To see a list of all the available binding options you can use for "data-syntax-options", click [here](https://www.william-troup.com/syntax-js/documentation/binding-options.html).

To see a list of all the available custom triggers you can use for "data-syntax-options", click [here](docs/binding/options/CUSTOM_TRIGGERS.md).
To see a list of all the available custom triggers you can use for "data-syntax-options", click [here](https://www.william-troup.com/syntax-js/documentation/binding-options-custom-triggers.html).

To see a list of all the available binding options you can use for "data-syntax-buttons", click [here](docs/binding/buttons/BUTTONS.md).
To see a list of all the available binding options you can use for "data-syntax-buttons", click [here](https://www.william-troup.com/syntax-js/documentation/buttons.html).

To see a list of all the available binding options you can use for "data-syntax-tab-contents", click [here](docs/binding/tabs/TAB_CONTENTS.md).
To see a list of all the available binding options you can use for "data-syntax-tab-contents", click [here](https://www.william-troup.com/syntax-js/documentation/tabs.html).

<br>

Expand All @@ -186,7 +203,7 @@ To customize, and get more out of Syntax.js, please read through the following d

### 1. Public Functions:

To see a list of all the public functions available, click [here](docs/PUBLIC_FUNCTIONS.md).
To see a list of all the public functions available, click [here](https://www.william-troup.com/syntax-js/documentation/public-functions.html).
<br>
<br>

Expand All @@ -203,6 +220,6 @@ Configuration options allow you to customize how Syntax.js will function. You c
</script>
```

To see a list of all the available configuration options you can use, click [here](docs/configuration/OPTIONS.md).
To see a list of all the available configuration options you can use, click [here](https://www.william-troup.com/syntax-js/documentation/options.html).

To see a list of all the available configuration options custom triggers you can use, click [here](docs/configuration/CUSTOM_TRIGGERS.md).
To see a list of all the available configuration options custom triggers you can use, click [here](https://www.william-troup.com/syntax-js/documentation/custom-triggers.html).
35 changes: 23 additions & 12 deletions README_NUGET.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Syntax.js v2.4.1
# Syntax.js v2.4.2

[![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.1-blue)](https://www.npmjs.com/package/jsyntax.js)
[![nuget](https://img.shields.io/badge/nuget-v2.4.1-purple)](https://www.nuget.org/packages/jSyntax.js/)
[![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/)
[![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://github.com/williamtroup)
[![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!
Expand Down Expand Up @@ -33,7 +33,7 @@ All modern browsers (such as Google Chrome, FireFox, and Opera) are fully suppor

## What are the most recent changes?

To see a list of all the most recent changes, click [here](https://github.com/williamtroup/Syntax.js/blob/main/docs/CHANGE_LOG.md).
To see a list of all the most recent changes, click [here](https://www.william-troup.com/syntax-js/documentation/recent-changes.html).


## What languages are supported by default?
Expand Down Expand Up @@ -67,6 +67,17 @@ To see a list of all the most recent changes, click [here](https://github.com/wi
- Visual Basic


## How do I install Syntax.js?

You can install the library with npm into your local modules directory using the following command:

```markdown
npm install jsyntax.js
```

Or, you can download the latest zipped up version [here](https://www.william-troup.com/syntax-js/download.html).


## How do I get started?

To get started using Syntax.js, do the following steps:
Expand Down Expand Up @@ -145,13 +156,13 @@ Make sure you include the "DOCTYPE html" tag at the top of your HTML, as follows

To see a list of all the available binding languages you can use for "data-syntax-language", click [here](https://github.com/williamtroup/Syntax.js/blob/main/docs/binding/language/LANGUAGE.md).

To see a list of all the available binding options you can use for "data-syntax-options", click [here](https://github.com/williamtroup/Syntax.js/blob/main/docs/binding/options/OPTIONS.md).
To see a list of all the available binding options you can use for "data-syntax-options", click [here](https://www.william-troup.com/syntax-js/documentation/binding-options.html).

To see a list of all the available custom triggers you can use for "data-syntax-options", click [here](https://github.com/williamtroup/Syntax.js/blob/main/docs/binding/options/CUSTOM_TRIGGERS.md).
To see a list of all the available custom triggers you can use for "data-syntax-options", click [here](https://www.william-troup.com/syntax-js/documentation/binding-options-custom-triggers.html).

To see a list of all the available binding options you can use for "data-syntax-buttons", click [here](https://github.com/williamtroup/Syntax.js/blob/main/docs/binding/buttons/BUTTONS.md).
To see a list of all the available binding options you can use for "data-syntax-buttons", click [here](https://www.william-troup.com/syntax-js/documentation/buttons.html).

To see a list of all the available binding options you can use for "data-syntax-tab-contents", click [here](https://github.com/williamtroup/Syntax.js/blob/main/docs/binding/tabs/TAB_CONTENTS.md).
To see a list of all the available binding options you can use for "data-syntax-tab-contents", click [here](https://www.william-troup.com/syntax-js/documentation/tabs.html).


### 4. Finishing Up:
Expand All @@ -166,7 +177,7 @@ To customize, and get more out of Syntax.js, please read through the following d

### 1. Public Functions:

To see a list of all the public functions available, click [here](https://github.com/williamtroup/Syntax.js/blob/main/docs/PUBLIC_FUNCTIONS.md).
To see a list of all the public functions available, click [here](https://www.william-troup.com/syntax-js/documentation/public-functions.html).


### 2. Configuration:
Expand All @@ -181,6 +192,6 @@ Configuration options allow you to customize how Syntax.js will function. You c
</script>
```

To see a list of all the available configuration options you can use, click [here](https://github.com/williamtroup/Syntax.js/blob/main/docs/OPTIONS.md).
To see a list of all the available configuration options you can use, click [here](https://www.william-troup.com/syntax-js/documentation/options.html).

To see a list of all the available configuration options custom triggers you can use, click [here](https://github.com/williamtroup/Syntax.js/blob/main/docs/CUSTOM_TRIGGERS.md).
To see a list of all the available configuration options custom triggers you can use, click [here](https://www.william-troup.com/syntax-js/documentation/custom-triggers.html).
2 changes: 1 addition & 1 deletion dist/languages/syntax.bash.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "bash", {
friendlyName: "Bash",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.c-plus-plus.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "c-plus-plus", {
friendlyName: "C++",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.c-sharp.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "c-sharp", {
friendlyName: "C#",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.c.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "c", {
friendlyName: "C",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.css.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "css", {
friendlyName: "CSS",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.dart.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "dart", {
friendlyName: "Dart",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.delphi.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "delphi", {
friendlyName: "Delphi",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.f-sharp.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "f-sharp", {
friendlyName: "F#",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.go.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "go", {
friendlyName: "Go",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.html.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "html", {
friendlyName: "HTML",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.java.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "java", {
friendlyName: "Java",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.javascript.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "javascript", {
friendlyName: "JavaScript",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.kotlin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "kotlin", {
friendlyName: "Kotlin",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.lua.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "lua", {
friendlyName: "Lua",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.matlab.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "matlab", {
friendlyName: "Matlab",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.ms-sql.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "ms-sql", {
friendlyName: "MS SQL",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.perl.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "perl", {
friendlyName: "Perl",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.php.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "php", {
friendlyName: "PHP",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.powershell.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "powershell", {
friendlyName: "Powershell",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.python.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "python", {
friendlyName: "Python",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.r.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "r", {
friendlyName: "R",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.ruby.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "ruby", {
friendlyName: "Ruby",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.rust.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "rust", {
friendlyName: "Rust",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.scala.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "scala", {
friendlyName: "Scala",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.swift.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "swift", {
friendlyName: "Swift",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.typescript.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "typescript", {
friendlyName: "TypeScript",
keywords: [
Expand Down
2 changes: 1 addition & 1 deletion dist/languages/syntax.visual-basic.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Syntax.js v2.4.1 | (c) Bunoon 2024 | MIT License */
/*! Syntax.js v2.4.2 | (c) Bunoon 2024 | MIT License */
$syntax.addLanguage( "visual-basic", {
friendlyName: "Visual Basic",
keywords: [
Expand Down
Loading

0 comments on commit 79a103a

Please sign in to comment.