Skip to content

Commit 937560c

Browse files
author
William Troup
authored
Merge pull request #45 from williamtroup/2.6.0
2.6.0
2 parents a42285a + e332d70 commit 937560c

95 files changed

Lines changed: 871 additions & 98 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 62 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
Syntax.js
33

44
[![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)
5-
[![npm](https://img.shields.io/badge/npmjs-v2.5.0-blue)](https://www.npmjs.com/package/jsyntax.js)
6-
[![nuget](https://img.shields.io/badge/nuget-v2.5.0-purple)](https://www.nuget.org/packages/jSyntax.js/)
5+
[![npm](https://img.shields.io/badge/npmjs-v2.6.0-blue)](https://www.npmjs.com/package/jsyntax.js)
6+
[![nuget](https://img.shields.io/badge/nuget-v2.6.0-purple)](https://www.nuget.org/packages/jSyntax.js/)
77
[![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/Syntax.js/blob/main/LICENSE.txt)
88
[![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/Syntax.js/discussions)
99
[![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://www.william-troup.com/)
1010
</h1>
1111

1212
> <p align="center">A lightweight, and easy-to-use, JavaScript library for code syntax highlighting!</p>
13-
> <p align="center">v2.5.0</p>
13+
> <p align="center">v2.6.0</p>
1414
<br />
1515
1616
![Syntax.js](docs/images/main.png)
@@ -23,6 +23,7 @@ Syntax.js
2323

2424
- Zero-dependencies and extremely lightweight!
2525
- Highlights keywords, values, strings, and comments.
26+
- 51 language translations available!
2627
- Full API available via public functions.
2728
- Fully styled in CSS/SASS (including the buttons) and compatible with the Bootstrap library.
2829
- Full CSS theme support (using :root variables, with a default dark-mode theme).
@@ -51,14 +52,71 @@ All modern browsers (such as Google Chrome, FireFox, and Opera) are fully suppor
5152
<br>
5253

5354

55+
<h1>What languages are supported?</h1>
56+
57+
- `af` Afrikaans
58+
- `ar` Arabic
59+
- `hy` Armenian
60+
- `be` Belarusian
61+
- `bn` Bengali
62+
- `bg` Bulgarian
63+
- `ca` Catalan
64+
- `zh` Chinese (simplified)
65+
- `da` Danish
66+
- `nl` Dutch
67+
- `en` English (default)
68+
- `eo` Esperanto
69+
- `et` Estonian
70+
- `fa` Farsi
71+
- `fi` Finnish
72+
- `fr` French
73+
- `fy` Frisian
74+
- `gl` Galician
75+
- `ka` Georgian
76+
- `de` German
77+
- `el` Greek
78+
- `he` Hebrew
79+
- `hi` Hindi
80+
- `hu` Hungarian
81+
- `is` Icelandic
82+
- `id` Indonesian
83+
- `ga` Irish
84+
- `it` Italian
85+
- `ja` Japanese
86+
- `ko` Korean
87+
- `lv` Latvian
88+
- `lt` Lithuanian
89+
- `lb` Luxembourgish
90+
- `ms` Malay
91+
- `ne` Nepali
92+
- `no` Norwegian
93+
- `pl` Polish
94+
- `pt` Portuguese
95+
- `ro` Romanian
96+
- `si` Sinhalese
97+
- `sk` Slovak
98+
- `sl` Slovenian
99+
- `es` Spanish
100+
- `sv` Swedish
101+
- `tl` Tagalog
102+
- `ta` Tamil
103+
- `zh-tw` Taiwanese
104+
- `te` Telugu
105+
- `th` Thai
106+
- `tr` Turkish
107+
- `uk` Ukrainian
108+
<br>
109+
<br>
110+
111+
54112
<h1>What are the most recent changes?</h1>
55113

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

60118

61-
<h1>What languages are supported by default?</h1>
119+
<h1>What programming languages are supported by default?</h1>
62120

63121
- `bash` Bash
64122
- `c-plus-plus` C++

README_NUGET.md

Lines changed: 60 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Syntax.js v2.5.0
1+
# Syntax.js v2.6.0
22

33
[![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)
4-
[![npm](https://img.shields.io/badge/npmjs-v2.5.0-blue)](https://www.npmjs.com/package/jsyntax.js)
5-
[![nuget](https://img.shields.io/badge/nuget-v2.5.0-purple)](https://www.nuget.org/packages/jSyntax.js/)
4+
[![npm](https://img.shields.io/badge/npmjs-v2.6.0-blue)](https://www.npmjs.com/package/jsyntax.js)
5+
[![nuget](https://img.shields.io/badge/nuget-v2.6.0-purple)](https://www.nuget.org/packages/jSyntax.js/)
66
[![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/Syntax.js/blob/main/LICENSE.txt)
77
[![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/Syntax.js/discussions)
88
[![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://www.william-troup.com/)
@@ -14,6 +14,7 @@
1414

1515
- Zero-dependencies and extremely lightweight!
1616
- Highlights keywords, values, strings, and comments.
17+
- 51 language translations available!
1718
- Full API available via public functions.
1819
- Fully styled in CSS/SASS (including the buttons) and compatible with the Bootstrap library.
1920
- Full CSS theme support (using :root variables, with a default dark-mode theme).
@@ -36,12 +37,67 @@ All the documentation can be found [here](https://www.william-troup.com/syntax-j
3637
All modern browsers (such as Google Chrome, FireFox, and Opera) are fully supported.
3738

3839

40+
## What languages are supported?
41+
42+
- `af` Afrikaans
43+
- `ar` Arabic
44+
- `hy` Armenian
45+
- `be` Belarusian
46+
- `bn` Bengali
47+
- `bg` Bulgarian
48+
- `ca` Catalan
49+
- `zh` Chinese (simplified)
50+
- `da` Danish
51+
- `nl` Dutch
52+
- `en` English (default)
53+
- `eo` Esperanto
54+
- `et` Estonian
55+
- `fa` Farsi
56+
- `fi` Finnish
57+
- `fr` French
58+
- `fy` Frisian
59+
- `gl` Galician
60+
- `ka` Georgian
61+
- `de` German
62+
- `el` Greek
63+
- `he` Hebrew
64+
- `hi` Hindi
65+
- `hu` Hungarian
66+
- `is` Icelandic
67+
- `id` Indonesian
68+
- `ga` Irish
69+
- `it` Italian
70+
- `ja` Japanese
71+
- `ko` Korean
72+
- `lv` Latvian
73+
- `lt` Lithuanian
74+
- `lb` Luxembourgish
75+
- `ms` Malay
76+
- `ne` Nepali
77+
- `no` Norwegian
78+
- `pl` Polish
79+
- `pt` Portuguese
80+
- `ro` Romanian
81+
- `si` Sinhalese
82+
- `sk` Slovak
83+
- `sl` Slovenian
84+
- `es` Spanish
85+
- `sv` Swedish
86+
- `tl` Tagalog
87+
- `ta` Tamil
88+
- `zh-tw` Taiwanese
89+
- `te` Telugu
90+
- `th` Thai
91+
- `tr` Turkish
92+
- `uk` Ukrainian
93+
94+
3995
## What are the most recent changes?
4096

4197
To see a list of all the most recent changes, click [here](https://www.william-troup.com/syntax-js/documentation/recent-changes.html).
4298

4399

44-
## What languages are supported by default?
100+
## What programming languages are supported by default?
45101

46102
- `bash` Bash
47103
- `c-plus-plus` C++

dist/languages/syntax.bash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Syntax.js v2.5.0 | (c) Bunoon 2024 | MIT License */
1+
/*! Syntax.js v2.6.0 | (c) Bunoon 2024 | MIT License */
22
$syntax.addLanguage( "bash", {
33
friendlyName: "Bash",
44
keywords: [

dist/languages/syntax.c-plus-plus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Syntax.js v2.5.0 | (c) Bunoon 2024 | MIT License */
1+
/*! Syntax.js v2.6.0 | (c) Bunoon 2024 | MIT License */
22
$syntax.addLanguage( "c-plus-plus", {
33
friendlyName: "C++",
44
keywords: [

dist/languages/syntax.c-sharp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Syntax.js v2.5.0 | (c) Bunoon 2024 | MIT License */
1+
/*! Syntax.js v2.6.0 | (c) Bunoon 2024 | MIT License */
22
$syntax.addLanguage( "c-sharp", {
33
friendlyName: "C#",
44
keywords: [

dist/languages/syntax.c.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Syntax.js v2.5.0 | (c) Bunoon 2024 | MIT License */
1+
/*! Syntax.js v2.6.0 | (c) Bunoon 2024 | MIT License */
22
$syntax.addLanguage( "c", {
33
friendlyName: "C",
44
keywords: [

dist/languages/syntax.css.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Syntax.js v2.5.0 | (c) Bunoon 2024 | MIT License */
1+
/*! Syntax.js v2.6.0 | (c) Bunoon 2024 | MIT License */
22
$syntax.addLanguage( "css", {
33
friendlyName: "CSS",
44
keywords: [

dist/languages/syntax.dart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Syntax.js v2.5.0 | (c) Bunoon 2024 | MIT License */
1+
/*! Syntax.js v2.6.0 | (c) Bunoon 2024 | MIT License */
22
$syntax.addLanguage( "dart", {
33
friendlyName: "Dart",
44
keywords: [

dist/languages/syntax.delphi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Syntax.js v2.5.0 | (c) Bunoon 2024 | MIT License */
1+
/*! Syntax.js v2.6.0 | (c) Bunoon 2024 | MIT License */
22
$syntax.addLanguage( "delphi", {
33
friendlyName: "Delphi",
44
keywords: [

dist/languages/syntax.f-sharp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Syntax.js v2.5.0 | (c) Bunoon 2024 | MIT License */
1+
/*! Syntax.js v2.6.0 | (c) Bunoon 2024 | MIT License */
22
$syntax.addLanguage( "f-sharp", {
33
friendlyName: "F#",
44
keywords: [

0 commit comments

Comments
 (0)