generated from KevinBatdorf/gutenberg-rust-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
readme.txt
563 lines (484 loc) · 53.3 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
=== Code Block Pro - Beautiful Syntax Highlighting ===
Contributors: kbat82, dcooney
Tags: block, code, syntax, highlighter, php
Tested up to: 6.6
Stable tag: 1.26.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Code highlighting powered by the VS Code engine. Performance focused. No bloat.
== Description ==
Show off your beautiful code, don't just display it! This block plugin provides you with a code editor that runs your code directly through the same rendering engine that is used by the popular VS Code editor. This block provides fast, native, code highlighting that renders perfectly in your favorite programming language using popular VS Code themes.
Beautiful syntax highlighting that makes sense.
To use, navigate to the default WordPress editor, and search for "Code Pro" or start typing "/code".
Visit [code-block-pro.com](https://code-block-pro.com/?utm_campaign=plugin&utm_source=readme-body&utm_medium=textlink) for a lifetime deal on the theme pack (this is a cosmetic-only upgrade).
= Values =
- Performance first - Web vitals. Pre-rendering. Minimal asset loading.
- Lightweight - No bloat. Simple functions. Clean, maintainable code.
- Practical/useful - Focused on the user experience and presentation.
- Beautiful - Your code should look great!
Star [Code Block Pro](https://github.com/KevinBatdorf/code-block-pro) on GitHub!
= Features =
- Includes 25+ built-in themes to choose from.
- Supports over 140 programming languages
- 10+ Modern programming web fonts - locally hosted
- Line numbers
- Line highlighting (static and on hover)
- Blur highlighting (with reveal on hover)
- Header styles
- Footer styles
- Copy button
- Native Gutenberg block
- Tab or space indentation
- Core functionality works in headless mode (see FAQ)
- Converting from the default code block (and others)
- Max height with scrollable section (optional expand button)
= More info =
- Star it on [GitHub](https://github.com/KevinBatdorf/code-block-pro)
- Follow [@kevinbatdorf](https://twitter.com/kevinbatdorf) on Twitter
= Tips =
- Try combining line highlighting with the blur effect to add some extra depth, and focus on the important parts of the code without losing context
- All settings are per block, but some settings are remembered when you add the next block
- Add a link in the code footer (some footers support this, not all) that points to a demo
- To achieve a flush look, remove padding under Extra Settings and select a theme with a background color matching your site theme
= Included VS Code Themes =
- Dark Plus ([demo](https://code-block-pro.com/themes?lang=bash&theme=dark-plus&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=dark-plus))
- Dracula Soft ([demo](https://code-block-pro.com/themes?lang=bash&theme=dracula-soft&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=dracula-soft))
- Dracula ([demo](https://code-block-pro.com/themes?lang=bash&theme=dracula&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=dracula))
- GitHub Dark Dimmed ([demo](https://code-block-pro.com/themes?lang=bash&theme=github-dark-dimmed&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=github-dark-dimmed))
- Github Dark ([demo](https://code-block-pro.com/themes?lang=bash&theme=github-dark&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=github-dark))
- Github Light ([demo](https://code-block-pro.com/themes?lang=bash&theme=github-light&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=github-light))
- Light Plus ([demo](https://code-block-pro.com/themes?lang=bash&theme=light-plus&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=light-plus))
- Material Darker ([demo](https://code-block-pro.com/themes?lang=bash&theme=material-darker&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=material-darker))
- Material Default ([demo](https://code-block-pro.com/themes?lang=bash&theme=material-default&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=material-default))
- Material Lighter ([demo](https://code-block-pro.com/themes?lang=bash&theme=material-lighter&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=material-lighter))
- Material Ocean ([demo](https://code-block-pro.com/themes?lang=bash&theme=material-ocean&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=material-ocean))
- Material Palenight ([demo](https://code-block-pro.com/themes?lang=bash&theme=material-palenight&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=material-palenight))
- Min Dark ([demo](https://code-block-pro.com/themes?lang=bash&theme=min-dark&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=min-dark))
- Min Light ([demo](https://code-block-pro.com/themes?lang=bash&theme=min-light&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=min-light))
- Monokai ([demo](https://code-block-pro.com/themes?lang=bash&theme=monokai&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=monokai))
- Nord ([demo](https://code-block-pro.com/themes?lang=bash&theme=nord&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=nord))
- One Dark Pro ([demo](https://code-block-pro.com/themes?lang=bash&theme=one-dark-pro&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=one-dark-pro))
- Poimandres ([demo](https://code-block-pro.com/themes?lang=bash&theme=poimandres&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=poimandres))
- Rose Pine Dawn ([demo](https://code-block-pro.com/themes?lang=bash&theme=rose-pine-dawn&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=rose-pine-dawn))
- Rose Pine Moon ([demo](https://code-block-pro.com/themes?lang=bash&theme=rose-pine-moon&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=rose-pine-moon))
- Rose Pine ([demo](https://code-block-pro.com/themes?lang=bash&theme=rose-pine&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=rose-pine))
- Slack Dark ([demo](https://code-block-pro.com/themes?lang=bash&theme=slack-dark&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=slack-dark))
- Slack Ochin ([demo](https://code-block-pro.com/themes?lang=bash&theme=slack-ochin&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=slack-ochin))
- Solarized Dark ([demo](https://code-block-pro.com/themes?lang=bash&theme=solarized-dark&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=solarized-dark))
- Solarized Light ([demo](https://code-block-pro.com/themes?lang=bash&theme=solarized-light&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=solarized-light))
- Vitesse Dark ([demo](https://code-block-pro.com/themes?lang=bash&theme=vitesse-dark&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=vitesse-dark))
- Vitesse Light ([demo](https://code-block-pro.com/themes?lang=bash&theme=vitesse-light&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=vitesse-light))
Get more themes at [code-block-pro.com/themes](https://code-block-pro.com/themes?utm_campaign=themes&utm_source=readme-body&utm_medium=textlink)
= Theme Pack (Paid) Includes =
- Custom Dynamic Theme (advanced) [read more](https://github.com/KevinBatdorf/code-block-pro/discussions/168)
- Andromeda ([demo](https://code-block-pro.com/themes?lang=bash&theme=andromeda&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=andromeda))
- Ayu Dark ([demo](https://code-block-pro.com/themes?lang=bash&theme=ayu-dark&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=ayu-dark))
- Ayu Mirage ([demo](https://code-block-pro.com/themes?lang=bash&theme=ayu-mirage&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=ayu-mirage))
- Ayu Light ([demo](https://code-block-pro.com/themes?lang=bash&theme=ayu-light&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=ayu-light))
- Cobalt2 ([demo](https://code-block-pro.com/themes?lang=bash&theme=cobalt2&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=cobalt2))
- Night Owl ([demo](https://code-block-pro.com/themes?lang=bash&theme=night-owl&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=night-owl))
- Night Owl Light ([demo](https://code-block-pro.com/themes?lang=bash&theme=night-owl-light&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=night-owl-light))
- Noctis ([demo](https://code-block-pro.com/themes?lang=bash&theme=noctis&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=noctis))
- Noctis Azureus ([demo](https://code-block-pro.com/themes?lang=bash&theme=noctis-azureus&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=noctis-azureus))
- Noctis Bordo ([demo](https://code-block-pro.com/themes?lang=bash&theme=noctis-bordo&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=noctis-bordo))
- Noctis Hibernus ([demo](https://code-block-pro.com/themes?lang=bash&theme=noctis-hibernus&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=noctis-hibernus))
- Noctis Lilac ([demo](https://code-block-pro.com/themes?lang=bash&theme=noctis-lilac&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=noctis-lilac))
- Noctis Lux ([demo](https://code-block-pro.com/themes?lang=bash&theme=noctis-lux&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=noctis-lux))
- Noctis Minimus ([demo](https://code-block-pro.com/themes?lang=bash&theme=noctis-minimus&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=noctis-minimus))
- Noctis Obscuro ([demo](https://code-block-pro.com/themes?lang=bash&theme=noctis-obscuro&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=noctis-obscuro))
- Noctis Sereno ([demo](https://code-block-pro.com/themes?lang=bash&theme=noctis-sereno&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=noctis-sereno))
- Noctis Uva ([demo](https://code-block-pro.com/themes?lang=bash&theme=noctis-uva&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=noctis-uva))
- Noctis Viola ([demo](https://code-block-pro.com/themes?lang=bash&theme=noctis-viola&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=noctis-viola))
- Palenight ([demo](https://code-block-pro.com/themes?lang=bash&theme=palenight&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=palenight))
- Pico 8 ([demo](https://code-block-pro.com/themes?lang=lua&theme=pico8&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=pico8))
- Shades of Purple ([demo](https://code-block-pro.com/themes?lang=bash&theme=shades-of-purple&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=shades-of-purple))
- Shades of Purple Super Dark ([demo](https://code-block-pro.com/themes?lang=bash&theme=shades-of-purple-super-dark&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=shades-of-purple-super-dark))
- Synthwave '84 ([demo](https://code-block-pro.com/themes?lang=bash&theme=synthwave-84&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=synthwave-84))
- Tokyo Night ([demo](https://code-block-pro.com/themes?lang=bash&theme=tokyo-night&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=tokyo-night))
- Tokyo Night Storm ([demo](https://code-block-pro.com/themes?lang=bash&theme=tokyo-night-storm&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=tokyo-night-storm))
- Tokyo Night Light ([demo](https://code-block-pro.com/themes?lang=bash&theme=tokyo-night-light&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=tokyo-night-light))
- Winter is Coming ([demo](https://code-block-pro.com/themes?lang=bash&theme=winter-is-coming&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=winter-is-coming))
- Winter is Coming Light ([demo](https://code-block-pro.com/themes?lang=bash&theme=winter-is-coming-light&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=winter-is-coming-light))
- Winter is Coming Dark ([demo](https://code-block-pro.com/themes?lang=bash&theme=winter-is-coming-dark&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=theme&utm_term=winter-is-coming-dark))
= Included Coding Languages =
- ABAP ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=abap&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=abap))
- ActionScript 3 ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=actionscript-3&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=actionscript-3))
- Ada ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=ada&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=ada))
- ANSI (control codes rendered)
- Apache ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=apache&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=apache))
- Apex ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=apex&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=apex))
- APL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=apl&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=apl))
- Ara ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=ara&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=ara))
- ASM ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=asm&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=asm))
- Astro ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=astro&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=astro))
- Awk ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=awk&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=awk))
- Ballerina ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=ballerina&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=ballerina))
- BAT (Batchfile) ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=bat&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=bat))
- Berry ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=berry&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=berry))
- BibTeX ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=bibtex&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=bibtex))
- BICEP ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=bicep&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=bicep))
- Blade ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=blade&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=blade))
- C ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=c&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=c))
- Cadence ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=cadence&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=cadence))
- Clarity ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=clarity&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=clarity))
- Clojure ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=clojure&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=clojure))
- CMake ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=cmake&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=cmake))
- COBOL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=cobol&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=cobol))
- CodeQL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=codeql&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=codeql))
- CoffeeScript ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=coffee&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=coffee))
- C++ ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=cpp&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=cpp))
- Crystal ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=crystal&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=crystal))
- C# ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=csharp&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=csharp))
- CSS ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=css&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=css))
- CUE ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=cue&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=cue))
- Cypher (cql) ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=cypher&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=cypher))
- D ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=d&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=d))
- Dart ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=dart&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=dart))
- DAX ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=dax&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=dax))
- Diff ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=diff&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=diff))
- Dockerfile ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=docker&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=docker))
- DreamMaker ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=dream-maker&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=dream-maker))
- Elixir ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=elixir&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=elixir))
- Elm ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=elm&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=elm))
- ERB ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=erb&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=erb))
- Erlang ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=erlang&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=erlang))
- Fish ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=fish&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=fish))
- F# ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=fsharp&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=fsharp))
- GDResource (Godot) ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=gdresource&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=gdresource))
- GDScript (Godot) ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=gdscript&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=gdscript))
- GDShader (Godot) ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=gdshader&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=gdshader))
- Gherkin ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=gherkin&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=gherkin))
- GLSL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=glsl&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=glsl))
- Glimmer js/ts ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=gjs&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=gjs))
- Gnuplot ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=gnuplot&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=gnuplot))
- Go ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=go&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=go))
- GraphQL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=graphql&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=graphql))
- Groovy ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=groovy&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=groovy))
- Hack ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=hack&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=hack))
- HAML ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=haml&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=haml))
- Handlebars ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=handlebars&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=handlebars))
- Haskell ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=haskell&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=haskell))
- HCL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=hcl&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=hcl))
- HLSL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=hlsl&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=hlsl))
- HTML ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=html&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=html))
- HTTP ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=http&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=http))
- INI ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=ini&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=ini))
- Imba ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=imba&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=imba))
- Java ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=java&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=java))
- JavaScript ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=javascript&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=javascript))
- Jinja HTML ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=jinja-html&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=jinja-html))
- Jison ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=jison&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=jison))
- JSON ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=json&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=json))
- JSON5 ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=json5&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=json5))
- JSONC ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=jsonc&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=jsonc))
- JSONL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=jsonl&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=jsonl))
- JSONnet ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=jsonnet&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=jsonnet))
- JSSM ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=jssm&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=jssm))
- JSX ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=jsx&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=jsx))
- Julia ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=julia&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=julia))
- Kotlin ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=kotlin&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=kotlin))
- Kusto ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=kusto&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=kusto))
- LaTeX ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=latex&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=latex))
- LESS ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=less&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=less))
- Ledger (Beancount) ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=beancount&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=beancount))
- Liquid ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=liquid&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=liquid))
- Lisp ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=lisp&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=lisp))
- Logo ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=logo&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=logo))
- Lua ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=lua&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=lua))
- Makefile ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=make&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=make))
- Markdown ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=markdown&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=markdown))
- Marko ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=marko&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=marko))
- MATLAB ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=matlab&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=matlab))
- MDC ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=mdc&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=mdc))
- MDX ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=mdx&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=mdx))
- Mermaid ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=mermaid&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=mermaid))
- Mojo ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=mojo&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=mojo))
- Narrat (nar) ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=narrat&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=narrat))
- Nextflow (nf) ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=nextflow&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=nextflow))
- Nginx ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=nginx&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=nginx))
- Nim ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=nim&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=nim))
- Nix ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=nix&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=nix))
- Objective-C ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=objective-c&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=objective-c))
- Objective-C++ ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=objective-cpp&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=objective-cpp%2B%2B))
- OCaml ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=ocaml&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=ocaml))
- Pascal ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=pascal&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=pascal))
- Perl ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=perl&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=perl))
- PHP ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=php&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=php))
- PLSQL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=plsql&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=plsql))
- PostCSS ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=postcss&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=postcss))
- Power Query ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=powerquery&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=powerquery))
- PowerShell ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=powershell&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=powershell))
- Prisma ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=prisma&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=prisma))
- Prolog ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=prolog&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=prolog))
- Protocol Buffers ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=proto&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=proto))
- Pug ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=pug&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=pug))
- Puppet ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=puppet&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=puppet))
- PureScript ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=purescript&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=purescript))
- Python ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=python&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=python))
- R ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=r&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=r))
- Raku ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=raku&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=raku))
- Razor ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=razor&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=razor))
- Windows Registry ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=reg&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=reg))
- Rel ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=rel&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=rel))
- RISC-V ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=riscv&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=riscv))
- RST ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=rst&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=rst))
- Ruby ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=ruby&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=ruby))
- Rust ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=rust&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=rust))
- SAS ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=sas&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=sas))
- Sass ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=sass&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=sass))
- Scala ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=scala&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=scala))
- Scheme ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=scheme&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=scheme))
- SCSS ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=scss&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=scss))
- Splunk SPL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=splunk&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=splunk))
- Bash ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=bash&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=bash))
- ShellScript ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=shellscript&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=shellscript))
- Zsh ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=zsh&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=zsh))
- ShellSession ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=shellsession&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=shellsession))
- Smalltalk ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=smalltalk&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=smalltalk))
- Solidity ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=solidity&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=solidity))
- SPARQL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=sparql&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=sparql))
- SQL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=sql&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=sql))
- SSH Config ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=ssh-config&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=ssh-config))
- Stata ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=stata&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=stata))
- Stylus ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=stylus&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=stylus))
- Svelte ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=svelte&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=svelte))
- Swift ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=swift&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=swift))
- SystemVerilog ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=system-verilog&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=system-verilog))
- TASL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=tasl&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=tasl))
- TCL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=tcl&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=tcl))
- TeX ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=tex&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=tex))
- TOML ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=toml&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=toml))
- TSX ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=tsx&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=tsx))
- Turtle ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=turtle&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=turtle))
- Twig ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=twig&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=twig))
- TypeScript ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=typescript&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=typescript))
- V ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=v&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=v))
- VB ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=vb&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=vb))
- Verilog ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=verilog&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=verilog))
- VHDL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=vhdl&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=vhdl))
- VimL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=viml&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=viml))
- Vue HTML ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=vue-html&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=vue-html))
- Vue ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=vue&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=vue))
- Vyper (vy) ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=vyper&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=vyper))
- WASM ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=wasm&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=wasm))
- Wenyan ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=wenyan&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=wenyan))
- WGSL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=wgsl&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=wgsl))
- Wolfram ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=wolfram&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=wolfram))
- XML ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=xml&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=xml))
- XSL ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=xsl&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=xsl))
- YAML ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=yaml&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=yaml))
- ZenScript ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=zenscript&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=zenscript))
- Zig ([demo](https://code-block-pro.com/themes?theme=one-dark-pro&lang=zig&utm_campaign=Demo&utm_source=Readme&utm_medium=textlink&utm_content=language&utm_term=zig))
== Installation ==
1. Activate the plugin through the 'Plugins' screen in WordPress
== Frequently Asked Questions ==
= Font size is too small/big =
Look under the "Styling" tab and turn on "Clamp Values", which will compute the rem values relative to a 16px-24px base * the selected rem values. e.g. clamp(20px, 1.25rem, 30px).
= How to use in headless =
Themes are rendered inside the editor as you type or make changes, so the code block itself will work without CSS or JavaScript. However, the font loading, copy button, and line highlighting require a tiny bit of JavaScript to function. Additionally, line blur uses a tiny bit of CSS which you will need to load in yourself or implement your own. The code tokens and theme styles are inline though, so no need to manipulate the DOM.
== Screenshots ==
1. Choose from more than 25 themes.
2. Customize fonts, themes, and behavior.
3. Disable padding and inline the code for a fluent experience.
4. Use highlighting and blur to focus on parts of the code.
5. ANSI support for rendering control sequences
== Changelog ==
= 1.26.4 - 2024-06-18 =
- Re-release with updated version number in readme. Making this a patch release as I worry some security plugins would otherwise complain.
= 1.26.3 - 2024-06-14 =
- Fix: Fixes support for ERB template syntax
= 1.26.2 - 2024-04-04 =
- Tweak: Changed the saved languages history from 3 to 5
- Fix: Addressed some contrast issues with print styles
- Testing: Updated tests to work better with latest WP
= 1.26.1 - 2024-01-31 =
- Fix: Fixes a bug where the plaintext language would crash the theme render
= 1.26.0 - 2024-01-17 =
- Feature: Added a copy button that allows for text inputs
- Feature: Added Roboto Mono font (https://fonts.google.com/specimen/Roboto+Mono)
- Feature: Added Hack font (https://github.com/source-foundry/Hack)
- Fix: Added a css dec to stop long text font upsizing on some mobile devices
= 1.25.0 - 2023-11-13 =
- Feature: Allow for overriding copy button text and invoke a callback
- Feature: Added new programming fonts, Monaspace (5), Geist, Cozette and Deja Vu
- Feature: Add pluggable sidebar slots to allow others to add functionality
- Tweak: Reorganized sidebar based on common daily usage
- Legal: Added (open source) license files for all fonts
= 1.24.1 - 2023-10-11 =
- Tweak: Line numbers width is now calculated based on the longest line number * font width
- Compatibility: Checks whether the user has permission via the browser instead of passing it in from the server (other plugins were intercepting this check)
= 1.24.0 - 2023-09-02 =
- Feature: Added Zig, mdc, Mojo, shellsession (console output), and splunk grammars
- Tweak: Combined confusing code aliases
- Fix: Fixed a bug where a setting would affect every block on the same page
= 1.23.0 - 2023-08-13 =
- Feature: Added Imba syntax
- Feature: Added two new header designs based on user requests, both using text inputs
- Tweak: The "see more" button options persist (theme, text, transition only)
= 1.22.1 - 2023-07-30 =
- Fix: Theme previews now respect the tabSize setting
- Fix: Added escapeHTML wrapper on code to code pro transform function
- Fix: Added some clarity on encoding, and added better edge cases handling
- Fix: Fixed an issue with the decoding with some sequences that would cause a block invalidation error.
= 1.22.0 - 2023-07-22 =
- Feature: Added tab support in the editor, with spacing options
- Feature: Added a way to convert back into a core code block
- Feature: Added the Non-Ligature version of Jetbrains Mono
- Fix: Fixed a spacing issue with tabs + line numbers
- Fix: Fixed a bug where the line highlighter would calc the longest highlighted line rather than longest line
- Tweak: Added pointer-events none to line blurs that are not removed on hover
= 1.21.0 - 2023-07-09 =
- Feature: Added a second copy button to choose from
- Feature: Added a tab size setting for when using the editor to add code. Defaults to 2 spaces.
- Tweak: Adjusts the highlight offset for comic mono
= 1.20.0 - 2023-06-25 =
- Feature: Added the following languages: Ledger (Beancount), Cypher (cql), Glimmer js/ts, JSONL, Narrat (nar), Nextflow (nf), Vyper (vy)
- Fix: Fixes an issue in the editor where some languages output an empty span tag that breaks the line number flow
= 1.19.0 - 2023-06-18 =
- Feature: Add Fantasque Sans Mono (https://github.com/belluzj/fantasque-sans)
- Feature: Add Comic Mono font (https://github.com/dtinth/comic-mono-font)
- Tweak: Default to Jetbrains Mono font
- Tweak: Rename the "Styling" panel to "Font Styling"
- Tweak: Remove line highlights on hover when blurred
- Tweak: Add minor adjustments for fonts to normalize line heights
- Fix: Block will be auto-focused on insert - WP6.2 regression
- Fix: Line highlight hover width was not rendering correctly
- Fix: Line highlighter will find the longest line to use as the highlighter width
= 1.18.0 - 2023-05-29 =
- Feature: Adds option to output html entities
- Tweak: Creates a new button settings area to support more buttons (coming soon)
- Tweak: Changes copying class to cbp-copying
- Fix: Fixed a bug where default settings weren't saving
= 1.17.0 - 2023-05-06 =
- Feature: Add line highlighting on hover
- Tweak: Updated the line highlighting sidebar language to be more clear (hopefully)
- Fix: Removed pointer events from line highlights so you can select text under it
- Fix: Adds styling to avoid CLS in the editor on page load
= 1.16.1 - 2023-05-01 =
- Tweak: Removes the filtering of bash and zsh filtering
- Fix: Better language sorting (by label instead of key)
- Fix: Fix typo in Wolfram language key
= 1.16.0 - 2023-04-30 =
- Feature: Added new language grammars: GD Script, GD Resource, GD Shader, GLSL, Http, Jison, JSON5, Kusto (kql), Protocol Buffers (.proto), Windows Registry (.reg), V, WGSL, and Wolfram
- Tweak: Removed toolbar language select and added functionality to focus on the sidebar setting
- Refactor: Moved header/footer settings out of the language select into their own panels
= 1.15.0 - 2023-04-08 =
- Feature: Add notice to users who do not have permission to update
- Feature: Added hooks to allow users to add their own themes (or via the theme pack)
- Feature: Add plaintext option to allow rendering as text
= 1.14.0 - 2023-03-26 =
- Feature: Added theme identifier to toolbar
- Feature: Added some filters for attributes and buttons
- Tweak: Updated various styles
- Testing: Updated Cypress to test against latest RC on main push
- Testing: Integration tests now run concurrently to isolate flakey failures
- Fix: Added custom endpoint for settings, allowing edit_post cap users
- Fix: Removed a type conversion to false, causing dirty posts on focus
- Accessibility: Added keydown events to frontend copy button
= 1.13.0 - 2023-02-05 =
- Feature: Add scrollable max height area with no button (Max Height panel)
- Feature: Add expanding code area with max height based on line number
- Feature: Added ANSI rendering support - some themes do not look perfect yet
- Fix: Disabled font ligatures in the editor as it broke cursor positioning on wraps
= 1.12.0 - 2023-01-28 =
- Feature: Added Ara, Power Query, and DAX language support
- Fix: Fixed preview output on theme selection
- Fix: Fixed theme selection font rendering (to match preview better)
= 1.11.3 - 2023-01-08 =
- Fix: Encode and decode html entities to prevent script tag bug
= 1.11.2 - 2023-01-04 =
- Fix: Update shiki renderer wasm loader to use ArrayBuffer
- Tweak: Expose init function as global to allow late init
= 1.11.1 - 2023-01-04 =
- Fix: Revert code parser as there is a wasm loading error
= 1.11.0 - 2023-01-03 =
- Feature: Add theme name text search
- Feature: Add theme visibility manager to limit visible themes
- Tweak: Show better error when theme is missing
- Fix: Renderer source url has a double slash
= 1.10.0 - 2022-12-21 =
- Feature: Add footer with left aligned text
- Tweak: Load scripts (copy button, highlight) on multiple lifecycle points
- Tweak: Make the above scripts idempotent so they can run multiple times safely
- Fix: Removes inner focus outline from Gutenberg update
= 1.9.3 - 2022-12-05 =
- Fix: Adjusted editor padding for line numbers to better match the front end
- Fix: Removed the TW border default in the editor as it was overriding some wp defaults
- Fix: Updated a typo on the word "focus"
- Testing: Adds coverage for every main feature
= 1.9.2 - 2022-11-22 =
- Compatibility: Adds a method override to allow users to activate when prismatic is installed
= 1.9.1 - 2022-11-21 =
- Fix: Fixed a situations where the highlighter was miscalculating its width
= 1.9.0 - 2022-11-20 =
- Feature: Added line highlights
- Feature: Added blur effect to highlight lines
- Tweak: Added the copy button to the editor preview
- Tweak: Removed HC Light - will follow up on rendering issues
- Fix: Selected text no longer leaves padding exposed on the right
= 1.8.0 - 2022-11-17 =
- Feature: Added footer styles
- Accessibility: Increased line number color contrast
- Accessibility: Increased copy button contrast
- Tweak: Disabled autocomplete on settings inputs
- Tweak: Added help context to variations that have inputs
- Fix: Fixed a bug where disabling padding on one block would update all
- Fix: Line numbers + disabled padding no longer formats weird in the editor
- Fix: Scrollbars are now using auto instead of scroll
- Fix: The loading screen on the theme viewer now fills the container
- Fix: With line numbers, changing the font now will recalculate the width
= 1.7.0 - 2022-11-09 =
- Feature: Add line number support
= 1.6.0 - 2022-09-09 =
- Feature: Add additional header styles
- Feature: Allow overriding the label in the header
- Tweak: Adjust copy button opacity interactions
= 1.5.2 - 2022-09-08 =
- Fix: Fix padding on copy button when padding is disabled
= 1.5.1 - 2022-09-05 =
- Tweak: Allow users to disable padding
- Fix: Fixes a bug where the header type set to none doesn't persist
- Fix: Clamp font settings were not being persisted
= 1.5.0 - 2022-09-05 =
- Feature: Add toggle so users can clamp font sizes to reasonable values.
- Show font styling in theme select sidebar
= 1.4.0 - 2022-09-04 =
- Feature: Add header "window controls" style option
- Feature: Add dynamic coding font imports
- Feature: Add "recent languages" section to quick switch
- Feature: Add alternate way to transform from core block
= 1.3.0 - 2022-09-04 =
- Feature: Add font size controls
- Feature: Add Line height controls
- Feature: Persist settings in the database instead of localStorage
- Fix: Fix overflow editor bug
= 1.2.8 - 2022-08-31 =
- Compatibility: Disable Prismatic. They use an encoding function on all code indiscriminately, breaking this plugin.
= 1.2.7 - 2022-08-31 =
- Fix: Add style overrides for the Hueman theme (and generally good overrides)
= 1.2.6 - 2022-08-30 =
- Fix: Force disable wrapping and overflow for bootstrap based themes.
= 1.2.5 - 2022-08-30 =
- Fix: Force disable wrapping and overflow for some themes.
= 1.2.4 - 2022-08-30 =
- Fix: Limit alignments to wide and full only.
= 1.2.3 - 2022-08-29 =
- Fix: Force left text alignment in the editor
- Tweak: Set WP default alignment to "none"
- Testing: Add item verification on scroll before click
= 1.2.2 - 2022-08-28 =
- Fix: Zeros out margins on pre elements for better theme compatibility
= 1.2.1 - 2022-08-27 =
- Fix: Remove nested pre tags (changed to div) in editor
- Feature: Added test coverage with cypress
= 1.2.0 - 2022-08-27 =
- Feature: Convert code from the core code block
- Feature: Convert code from SyntaxHighlighter Evolved
- Feature: Add toolbar language select
- Feature: Add language "nice names"
- Fix: Remove line wrap from frontend
= 1.1.0 - 2022-08-22 =
- Feature: Add filters to hook into output
- Tweak: Set copy button on by default
= 1.0.0 - 2022-08-20 =
- Initial release