@fsegurai/codemirror-theme-cobalt2 6.0.0 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +32 -72
- package/dist/index.js +32 -72
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img alt="CodeMirror 6 Themes Logo" src="https://raw.githubusercontent.com/fsegurai/codemirror-themes/main/public/codemirror-themes.png">
|
|
2
|
+
<img alt="CodeMirror 6 Themes Logo" src="https://raw.githubusercontent.com/fsegurai/codemirror-themes/main/demo/public/codemirror-themes.png">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
package/dist/index.cjs
CHANGED
|
@@ -435,12 +435,22 @@ const cobalt2Theme = view.EditorView.theme({
|
|
|
435
435
|
* Enhanced syntax highlighting for the Cobalt2 theme
|
|
436
436
|
*/
|
|
437
437
|
const cobalt2HighlightStyle = language.HighlightStyle.define([
|
|
438
|
+
// Comments
|
|
439
|
+
{ tag: highlight.tags.comment, color: blue, fontStyle: 'italic' },
|
|
440
|
+
{ tag: highlight.tags.docComment, color: blue, fontStyle: 'italic' },
|
|
441
|
+
{ tag: highlight.tags.lineComment, color: blue, fontStyle: 'italic' },
|
|
442
|
+
{ tag: highlight.tags.blockComment, color: blue, fontStyle: 'italic' },
|
|
438
443
|
// Keywords and control flow
|
|
439
444
|
{ tag: highlight.tags.keyword, color: orange },
|
|
440
445
|
{ tag: highlight.tags.controlKeyword, color: orange },
|
|
441
446
|
{ tag: highlight.tags.operatorKeyword, color: orange },
|
|
442
447
|
{ tag: highlight.tags.moduleKeyword, color: cyan },
|
|
443
448
|
{ tag: highlight.tags.definitionKeyword, color: hotPink },
|
|
449
|
+
// Special language constructs
|
|
450
|
+
{ tag: highlight.tags.self, color: hotPink },
|
|
451
|
+
{ tag: highlight.tags.special(highlight.tags.variableName), color: cyan },
|
|
452
|
+
{ tag: highlight.tags.special(highlight.tags.keyword), color: cyan },
|
|
453
|
+
{ tag: highlight.tags.special(highlight.tags.propertyName), color: cyan },
|
|
444
454
|
// Variables - Enhanced for better distinction
|
|
445
455
|
{ tag: highlight.tags.variableName, color: foreground },
|
|
446
456
|
{ tag: highlight.tags.definition(highlight.tags.variableName), color: foreground },
|
|
@@ -450,41 +460,14 @@ const cobalt2HighlightStyle = language.HighlightStyle.define([
|
|
|
450
460
|
{ tag: highlight.tags.className, color: lightPink, fontStyle: 'italic' },
|
|
451
461
|
{ tag: highlight.tags.namespace, color: lightPink, fontStyle: 'italic' },
|
|
452
462
|
{ tag: highlight.tags.macroName, color: lightPink, fontStyle: 'italic' },
|
|
453
|
-
|
|
454
|
-
{ tag: highlight.tags.standard(highlight.tags.propertyName), color: supportTeal },
|
|
455
|
-
// Operators and punctuation
|
|
456
|
-
{ tag: highlight.tags.operator, color: lightGray },
|
|
457
|
-
{ tag: highlight.tags.derefOperator, color: lightGray },
|
|
458
|
-
{ tag: highlight.tags.arithmeticOperator, color: lightGray },
|
|
459
|
-
{ tag: highlight.tags.logicOperator, color: lightGray },
|
|
460
|
-
{ tag: highlight.tags.bitwiseOperator, color: lightGray },
|
|
461
|
-
{ tag: highlight.tags.compareOperator, color: lightGray },
|
|
462
|
-
{ tag: highlight.tags.updateOperator, color: lightGray },
|
|
463
|
-
{ tag: highlight.tags.punctuation, color: lightGray },
|
|
464
|
-
{ tag: highlight.tags.bracket, color: lightGray },
|
|
465
|
-
{ tag: highlight.tags.brace, color: lightGray },
|
|
466
|
-
{ tag: highlight.tags.squareBracket, color: lightGray },
|
|
467
|
-
{ tag: highlight.tags.paren, color: yellow },
|
|
468
|
-
{ tag: highlight.tags.angleBracket, color: lightGray },
|
|
469
|
-
{ tag: [highlight.tags.operator, highlight.tags.punctuation], color: lightGray },
|
|
470
|
-
// Functions
|
|
463
|
+
// Functions - specific function types first
|
|
471
464
|
{ tag: highlight.tags.function(highlight.tags.variableName), color: yellow },
|
|
472
465
|
{ tag: highlight.tags.function(highlight.tags.definition(highlight.tags.variableName)), color: yellow },
|
|
473
466
|
{ tag: highlight.tags.function(highlight.tags.propertyName), color: yellow },
|
|
474
|
-
{ tag: [highlight.tags.moduleKeyword, highlight.tags.special(highlight.tags.keyword)], color: cyan },
|
|
475
|
-
{ tag: [highlight.tags.definitionKeyword], color: hotPink },
|
|
476
|
-
// Comments
|
|
477
|
-
{ tag: highlight.tags.comment, color: blue, fontStyle: 'italic' },
|
|
478
|
-
{ tag: highlight.tags.docComment, color: blue, fontStyle: 'italic' },
|
|
479
|
-
{ tag: highlight.tags.lineComment, color: blue, fontStyle: 'italic' },
|
|
480
|
-
{ tag: highlight.tags.blockComment, color: blue, fontStyle: 'italic' },
|
|
481
|
-
// Storage and function keywords
|
|
482
|
-
{ tag: highlight.tags.modifier, color: yellow, fontStyle: 'italic' },
|
|
483
|
-
// Special variables and exports
|
|
484
|
-
{ tag: highlight.tags.special(highlight.tags.variableName), color: cyan },
|
|
485
467
|
// Properties
|
|
486
468
|
{ tag: highlight.tags.propertyName, color: lightBlue },
|
|
487
469
|
{ tag: highlight.tags.definition(highlight.tags.propertyName), color: lightBlue },
|
|
470
|
+
{ tag: highlight.tags.standard(highlight.tags.propertyName), color: supportTeal },
|
|
488
471
|
// Constants
|
|
489
472
|
{ tag: highlight.tags.constant(highlight.tags.name), color: pink },
|
|
490
473
|
{ tag: highlight.tags.standard(highlight.tags.name), color: pink },
|
|
@@ -494,9 +477,9 @@ const cobalt2HighlightStyle = language.HighlightStyle.define([
|
|
|
494
477
|
{ tag: highlight.tags.bool, color: pink },
|
|
495
478
|
{ tag: highlight.tags.atom, color: pink },
|
|
496
479
|
{ tag: highlight.tags.null, color: pink },
|
|
497
|
-
// Strings
|
|
498
|
-
{ tag: highlight.tags.string, color: lightGreen },
|
|
480
|
+
// Strings - specific string types first
|
|
499
481
|
{ tag: highlight.tags.special(highlight.tags.string), color: green },
|
|
482
|
+
{ tag: highlight.tags.string, color: lightGreen },
|
|
500
483
|
{ tag: highlight.tags.regexp, color: lightGreen },
|
|
501
484
|
// String quotes
|
|
502
485
|
{ tag: highlight.tags.quote, color: stringQuotes },
|
|
@@ -504,14 +487,30 @@ const cobalt2HighlightStyle = language.HighlightStyle.define([
|
|
|
504
487
|
{ tag: highlight.tags.definition(highlight.tags.function(highlight.tags.variableName)), color: parameterYellow },
|
|
505
488
|
// HTML/XML elements
|
|
506
489
|
{ tag: highlight.tags.tagName, color: lightBlue },
|
|
490
|
+
{ tag: highlight.tags.standard(highlight.tags.tagName), color: supportTeal },
|
|
507
491
|
{ tag: highlight.tags.attributeName, color: yellow, fontStyle: 'italic' },
|
|
508
492
|
{ tag: highlight.tags.attributeValue, color: lightGreen },
|
|
509
|
-
//
|
|
510
|
-
{ tag: highlight.tags.
|
|
493
|
+
// Operators and punctuation
|
|
494
|
+
{ tag: highlight.tags.operator, color: lightGray },
|
|
495
|
+
{ tag: highlight.tags.derefOperator, color: lightGray },
|
|
496
|
+
{ tag: highlight.tags.arithmeticOperator, color: lightGray },
|
|
497
|
+
{ tag: highlight.tags.logicOperator, color: lightGray },
|
|
498
|
+
{ tag: highlight.tags.bitwiseOperator, color: lightGray },
|
|
499
|
+
{ tag: highlight.tags.compareOperator, color: lightGray },
|
|
500
|
+
{ tag: highlight.tags.updateOperator, color: lightGray },
|
|
501
|
+
{ tag: highlight.tags.punctuation, color: lightGray },
|
|
502
|
+
{ tag: highlight.tags.bracket, color: lightGray },
|
|
503
|
+
{ tag: highlight.tags.brace, color: lightGray },
|
|
504
|
+
{ tag: highlight.tags.squareBracket, color: lightGray },
|
|
505
|
+
{ tag: highlight.tags.paren, color: yellow },
|
|
506
|
+
{ tag: highlight.tags.angleBracket, color: lightGray },
|
|
507
|
+
// Storage and function keywords
|
|
508
|
+
{ tag: highlight.tags.modifier, color: yellow, fontStyle: 'italic' },
|
|
511
509
|
// Meta and annotations
|
|
512
510
|
{ tag: highlight.tags.meta, color: lightBlue },
|
|
513
511
|
{ tag: highlight.tags.annotation, color: yellow, fontStyle: 'italic' },
|
|
514
512
|
{ tag: highlight.tags.processingInstruction, color: yellow },
|
|
513
|
+
// Markdown elements
|
|
515
514
|
{ tag: highlight.tags.heading, color: yellow, fontWeight: 'bold' },
|
|
516
515
|
{ tag: highlight.tags.heading1, color: yellow, fontWeight: 'bold' },
|
|
517
516
|
{ tag: highlight.tags.heading2, color: yellow, fontWeight: 'bold' },
|
|
@@ -523,7 +522,6 @@ const cobalt2HighlightStyle = language.HighlightStyle.define([
|
|
|
523
522
|
{ tag: highlight.tags.strong, color: lightBlue, fontWeight: 'bold' },
|
|
524
523
|
{ tag: highlight.tags.emphasis, color: lightBlue, fontStyle: 'italic' },
|
|
525
524
|
{ tag: highlight.tags.list, color: yellow },
|
|
526
|
-
{ tag: highlight.tags.quote, color: lightBlue, fontStyle: 'italic' },
|
|
527
525
|
// Code blocks and inline code - Enhanced styling
|
|
528
526
|
{ tag: highlight.tags.monospace, color: lightBlue },
|
|
529
527
|
{ tag: highlight.tags.special(highlight.tags.monospace), color: green },
|
|
@@ -536,46 +534,8 @@ const cobalt2HighlightStyle = language.HighlightStyle.define([
|
|
|
536
534
|
{ tag: highlight.tags.deleted, color: pink },
|
|
537
535
|
{ tag: highlight.tags.inserted, color: lightGreen },
|
|
538
536
|
{ tag: highlight.tags.changed, color: yellow },
|
|
539
|
-
// Module system - exports, require, module should be cyan
|
|
540
|
-
{ tag: highlight.tags.special(highlight.tags.keyword), color: cyan }, // Special keywords like exports
|
|
541
|
-
// Function declarations and expressions - function keyword should be magenta
|
|
542
|
-
{ tag: highlight.tags.definitionKeyword, color: hotPink }, // function, class, etc.
|
|
543
|
-
// Method names and function assignments - yellow
|
|
544
|
-
{ tag: highlight.tags.function(highlight.tags.propertyName), color: yellow }, // obj.method, exports.functionName
|
|
545
|
-
// Arrow functions and anonymous functions
|
|
546
|
-
{ tag: highlight.tags.function(highlight.tags.definition(highlight.tags.variableName)), color: yellow },
|
|
547
|
-
// Object property access - cyan for special objects like exports
|
|
548
|
-
{ tag: highlight.tags.special(highlight.tags.propertyName), color: cyan }, // exports.something
|
|
549
537
|
// Language-specific: CSS
|
|
550
538
|
{ tag: highlight.tags.unit, color: parameterYellow }, // CSS units
|
|
551
|
-
// Enhanced code block syntax highlighting for better JavaScript support
|
|
552
|
-
// ====================================================================
|
|
553
|
-
// JavaScript/TypeScript keywords in code blocks
|
|
554
|
-
{ tag: [highlight.tags.controlKeyword, highlight.tags.keyword], color: orange }, // return, if, else, etc.
|
|
555
|
-
// Variables in code blocks - white for better readability
|
|
556
|
-
{ tag: [highlight.tags.variableName, highlight.tags.local(highlight.tags.variableName)], color: foreground },
|
|
557
|
-
// Functions in code blocks - yellow
|
|
558
|
-
{
|
|
559
|
-
tag: [highlight.tags.function(highlight.tags.variableName), highlight.tags.function(highlight.tags.definition(highlight.tags.variableName))],
|
|
560
|
-
color: yellow,
|
|
561
|
-
},
|
|
562
|
-
// Strings in code blocks
|
|
563
|
-
{ tag: [highlight.tags.string, highlight.tags.special(highlight.tags.string)], color: lightGreen },
|
|
564
|
-
// Numbers in code blocks
|
|
565
|
-
{ tag: [highlight.tags.number, highlight.tags.integer, highlight.tags.float], color: pink },
|
|
566
|
-
// Comments in code blocks
|
|
567
|
-
{
|
|
568
|
-
tag: [highlight.tags.comment, highlight.tags.lineComment, highlight.tags.blockComment],
|
|
569
|
-
color: blue,
|
|
570
|
-
fontStyle: 'italic',
|
|
571
|
-
},
|
|
572
|
-
// HTML/XML in code blocks
|
|
573
|
-
{ tag: [highlight.tags.tagName, highlight.tags.angleBracket], color: lightBlue },
|
|
574
|
-
{ tag: [highlight.tags.attributeName], color: yellow, fontStyle: 'italic' },
|
|
575
|
-
{ tag: [highlight.tags.attributeValue], color: lightGreen },
|
|
576
|
-
{ tag: [highlight.tags.propertyName], color: lightBlue },
|
|
577
|
-
{ tag: [highlight.tags.className], color: lightPink, fontStyle: 'italic' },
|
|
578
|
-
{ tag: [highlight.tags.standard(highlight.tags.propertyName)], color: supportTeal },
|
|
579
539
|
// Entity names
|
|
580
540
|
{ tag: highlight.tags.labelName, color: yellow },
|
|
581
541
|
{ tag: highlight.tags.escape, color: yellow },
|
package/dist/index.js
CHANGED
|
@@ -433,12 +433,22 @@ const cobalt2Theme = /*@__PURE__*/EditorView.theme({
|
|
|
433
433
|
* Enhanced syntax highlighting for the Cobalt2 theme
|
|
434
434
|
*/
|
|
435
435
|
const cobalt2HighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
436
|
+
// Comments
|
|
437
|
+
{ tag: tags.comment, color: blue, fontStyle: 'italic' },
|
|
438
|
+
{ tag: tags.docComment, color: blue, fontStyle: 'italic' },
|
|
439
|
+
{ tag: tags.lineComment, color: blue, fontStyle: 'italic' },
|
|
440
|
+
{ tag: tags.blockComment, color: blue, fontStyle: 'italic' },
|
|
436
441
|
// Keywords and control flow
|
|
437
442
|
{ tag: tags.keyword, color: orange },
|
|
438
443
|
{ tag: tags.controlKeyword, color: orange },
|
|
439
444
|
{ tag: tags.operatorKeyword, color: orange },
|
|
440
445
|
{ tag: tags.moduleKeyword, color: cyan },
|
|
441
446
|
{ tag: tags.definitionKeyword, color: hotPink },
|
|
447
|
+
// Special language constructs
|
|
448
|
+
{ tag: tags.self, color: hotPink },
|
|
449
|
+
{ tag: /*@__PURE__*/tags.special(tags.variableName), color: cyan },
|
|
450
|
+
{ tag: /*@__PURE__*/tags.special(tags.keyword), color: cyan },
|
|
451
|
+
{ tag: /*@__PURE__*/tags.special(tags.propertyName), color: cyan },
|
|
442
452
|
// Variables - Enhanced for better distinction
|
|
443
453
|
{ tag: tags.variableName, color: foreground },
|
|
444
454
|
{ tag: /*@__PURE__*/tags.definition(tags.variableName), color: foreground },
|
|
@@ -448,41 +458,14 @@ const cobalt2HighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
|
448
458
|
{ tag: tags.className, color: lightPink, fontStyle: 'italic' },
|
|
449
459
|
{ tag: tags.namespace, color: lightPink, fontStyle: 'italic' },
|
|
450
460
|
{ tag: tags.macroName, color: lightPink, fontStyle: 'italic' },
|
|
451
|
-
|
|
452
|
-
{ tag: /*@__PURE__*/tags.standard(tags.propertyName), color: supportTeal },
|
|
453
|
-
// Operators and punctuation
|
|
454
|
-
{ tag: tags.operator, color: lightGray },
|
|
455
|
-
{ tag: tags.derefOperator, color: lightGray },
|
|
456
|
-
{ tag: tags.arithmeticOperator, color: lightGray },
|
|
457
|
-
{ tag: tags.logicOperator, color: lightGray },
|
|
458
|
-
{ tag: tags.bitwiseOperator, color: lightGray },
|
|
459
|
-
{ tag: tags.compareOperator, color: lightGray },
|
|
460
|
-
{ tag: tags.updateOperator, color: lightGray },
|
|
461
|
-
{ tag: tags.punctuation, color: lightGray },
|
|
462
|
-
{ tag: tags.bracket, color: lightGray },
|
|
463
|
-
{ tag: tags.brace, color: lightGray },
|
|
464
|
-
{ tag: tags.squareBracket, color: lightGray },
|
|
465
|
-
{ tag: tags.paren, color: yellow },
|
|
466
|
-
{ tag: tags.angleBracket, color: lightGray },
|
|
467
|
-
{ tag: [tags.operator, tags.punctuation], color: lightGray },
|
|
468
|
-
// Functions
|
|
461
|
+
// Functions - specific function types first
|
|
469
462
|
{ tag: /*@__PURE__*/tags.function(tags.variableName), color: yellow },
|
|
470
463
|
{ tag: /*@__PURE__*/tags.function(/*@__PURE__*/tags.definition(tags.variableName)), color: yellow },
|
|
471
464
|
{ tag: /*@__PURE__*/tags.function(tags.propertyName), color: yellow },
|
|
472
|
-
{ tag: [tags.moduleKeyword, /*@__PURE__*/tags.special(tags.keyword)], color: cyan },
|
|
473
|
-
{ tag: [tags.definitionKeyword], color: hotPink },
|
|
474
|
-
// Comments
|
|
475
|
-
{ tag: tags.comment, color: blue, fontStyle: 'italic' },
|
|
476
|
-
{ tag: tags.docComment, color: blue, fontStyle: 'italic' },
|
|
477
|
-
{ tag: tags.lineComment, color: blue, fontStyle: 'italic' },
|
|
478
|
-
{ tag: tags.blockComment, color: blue, fontStyle: 'italic' },
|
|
479
|
-
// Storage and function keywords
|
|
480
|
-
{ tag: tags.modifier, color: yellow, fontStyle: 'italic' },
|
|
481
|
-
// Special variables and exports
|
|
482
|
-
{ tag: /*@__PURE__*/tags.special(tags.variableName), color: cyan },
|
|
483
465
|
// Properties
|
|
484
466
|
{ tag: tags.propertyName, color: lightBlue },
|
|
485
467
|
{ tag: /*@__PURE__*/tags.definition(tags.propertyName), color: lightBlue },
|
|
468
|
+
{ tag: /*@__PURE__*/tags.standard(tags.propertyName), color: supportTeal },
|
|
486
469
|
// Constants
|
|
487
470
|
{ tag: /*@__PURE__*/tags.constant(tags.name), color: pink },
|
|
488
471
|
{ tag: /*@__PURE__*/tags.standard(tags.name), color: pink },
|
|
@@ -492,9 +475,9 @@ const cobalt2HighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
|
492
475
|
{ tag: tags.bool, color: pink },
|
|
493
476
|
{ tag: tags.atom, color: pink },
|
|
494
477
|
{ tag: tags.null, color: pink },
|
|
495
|
-
// Strings
|
|
496
|
-
{ tag: tags.string, color: lightGreen },
|
|
478
|
+
// Strings - specific string types first
|
|
497
479
|
{ tag: /*@__PURE__*/tags.special(tags.string), color: green },
|
|
480
|
+
{ tag: tags.string, color: lightGreen },
|
|
498
481
|
{ tag: tags.regexp, color: lightGreen },
|
|
499
482
|
// String quotes
|
|
500
483
|
{ tag: tags.quote, color: stringQuotes },
|
|
@@ -502,14 +485,30 @@ const cobalt2HighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
|
502
485
|
{ tag: /*@__PURE__*/tags.definition(/*@__PURE__*/tags.function(tags.variableName)), color: parameterYellow },
|
|
503
486
|
// HTML/XML elements
|
|
504
487
|
{ tag: tags.tagName, color: lightBlue },
|
|
488
|
+
{ tag: /*@__PURE__*/tags.standard(tags.tagName), color: supportTeal },
|
|
505
489
|
{ tag: tags.attributeName, color: yellow, fontStyle: 'italic' },
|
|
506
490
|
{ tag: tags.attributeValue, color: lightGreen },
|
|
507
|
-
//
|
|
508
|
-
{ tag: tags.
|
|
491
|
+
// Operators and punctuation
|
|
492
|
+
{ tag: tags.operator, color: lightGray },
|
|
493
|
+
{ tag: tags.derefOperator, color: lightGray },
|
|
494
|
+
{ tag: tags.arithmeticOperator, color: lightGray },
|
|
495
|
+
{ tag: tags.logicOperator, color: lightGray },
|
|
496
|
+
{ tag: tags.bitwiseOperator, color: lightGray },
|
|
497
|
+
{ tag: tags.compareOperator, color: lightGray },
|
|
498
|
+
{ tag: tags.updateOperator, color: lightGray },
|
|
499
|
+
{ tag: tags.punctuation, color: lightGray },
|
|
500
|
+
{ tag: tags.bracket, color: lightGray },
|
|
501
|
+
{ tag: tags.brace, color: lightGray },
|
|
502
|
+
{ tag: tags.squareBracket, color: lightGray },
|
|
503
|
+
{ tag: tags.paren, color: yellow },
|
|
504
|
+
{ tag: tags.angleBracket, color: lightGray },
|
|
505
|
+
// Storage and function keywords
|
|
506
|
+
{ tag: tags.modifier, color: yellow, fontStyle: 'italic' },
|
|
509
507
|
// Meta and annotations
|
|
510
508
|
{ tag: tags.meta, color: lightBlue },
|
|
511
509
|
{ tag: tags.annotation, color: yellow, fontStyle: 'italic' },
|
|
512
510
|
{ tag: tags.processingInstruction, color: yellow },
|
|
511
|
+
// Markdown elements
|
|
513
512
|
{ tag: tags.heading, color: yellow, fontWeight: 'bold' },
|
|
514
513
|
{ tag: tags.heading1, color: yellow, fontWeight: 'bold' },
|
|
515
514
|
{ tag: tags.heading2, color: yellow, fontWeight: 'bold' },
|
|
@@ -521,7 +520,6 @@ const cobalt2HighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
|
521
520
|
{ tag: tags.strong, color: lightBlue, fontWeight: 'bold' },
|
|
522
521
|
{ tag: tags.emphasis, color: lightBlue, fontStyle: 'italic' },
|
|
523
522
|
{ tag: tags.list, color: yellow },
|
|
524
|
-
{ tag: tags.quote, color: lightBlue, fontStyle: 'italic' },
|
|
525
523
|
// Code blocks and inline code - Enhanced styling
|
|
526
524
|
{ tag: tags.monospace, color: lightBlue },
|
|
527
525
|
{ tag: /*@__PURE__*/tags.special(tags.monospace), color: green },
|
|
@@ -534,46 +532,8 @@ const cobalt2HighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
|
534
532
|
{ tag: tags.deleted, color: pink },
|
|
535
533
|
{ tag: tags.inserted, color: lightGreen },
|
|
536
534
|
{ tag: tags.changed, color: yellow },
|
|
537
|
-
// Module system - exports, require, module should be cyan
|
|
538
|
-
{ tag: /*@__PURE__*/tags.special(tags.keyword), color: cyan }, // Special keywords like exports
|
|
539
|
-
// Function declarations and expressions - function keyword should be magenta
|
|
540
|
-
{ tag: tags.definitionKeyword, color: hotPink }, // function, class, etc.
|
|
541
|
-
// Method names and function assignments - yellow
|
|
542
|
-
{ tag: /*@__PURE__*/tags.function(tags.propertyName), color: yellow }, // obj.method, exports.functionName
|
|
543
|
-
// Arrow functions and anonymous functions
|
|
544
|
-
{ tag: /*@__PURE__*/tags.function(/*@__PURE__*/tags.definition(tags.variableName)), color: yellow },
|
|
545
|
-
// Object property access - cyan for special objects like exports
|
|
546
|
-
{ tag: /*@__PURE__*/tags.special(tags.propertyName), color: cyan }, // exports.something
|
|
547
535
|
// Language-specific: CSS
|
|
548
536
|
{ tag: tags.unit, color: parameterYellow }, // CSS units
|
|
549
|
-
// Enhanced code block syntax highlighting for better JavaScript support
|
|
550
|
-
// ====================================================================
|
|
551
|
-
// JavaScript/TypeScript keywords in code blocks
|
|
552
|
-
{ tag: [tags.controlKeyword, tags.keyword], color: orange }, // return, if, else, etc.
|
|
553
|
-
// Variables in code blocks - white for better readability
|
|
554
|
-
{ tag: [tags.variableName, /*@__PURE__*/tags.local(tags.variableName)], color: foreground },
|
|
555
|
-
// Functions in code blocks - yellow
|
|
556
|
-
{
|
|
557
|
-
tag: [/*@__PURE__*/tags.function(tags.variableName), /*@__PURE__*/tags.function(/*@__PURE__*/tags.definition(tags.variableName))],
|
|
558
|
-
color: yellow,
|
|
559
|
-
},
|
|
560
|
-
// Strings in code blocks
|
|
561
|
-
{ tag: [tags.string, /*@__PURE__*/tags.special(tags.string)], color: lightGreen },
|
|
562
|
-
// Numbers in code blocks
|
|
563
|
-
{ tag: [tags.number, tags.integer, tags.float], color: pink },
|
|
564
|
-
// Comments in code blocks
|
|
565
|
-
{
|
|
566
|
-
tag: [tags.comment, tags.lineComment, tags.blockComment],
|
|
567
|
-
color: blue,
|
|
568
|
-
fontStyle: 'italic',
|
|
569
|
-
},
|
|
570
|
-
// HTML/XML in code blocks
|
|
571
|
-
{ tag: [tags.tagName, tags.angleBracket], color: lightBlue },
|
|
572
|
-
{ tag: [tags.attributeName], color: yellow, fontStyle: 'italic' },
|
|
573
|
-
{ tag: [tags.attributeValue], color: lightGreen },
|
|
574
|
-
{ tag: [tags.propertyName], color: lightBlue },
|
|
575
|
-
{ tag: [tags.className], color: lightPink, fontStyle: 'italic' },
|
|
576
|
-
{ tag: [/*@__PURE__*/tags.standard(tags.propertyName)], color: supportTeal },
|
|
577
537
|
// Entity names
|
|
578
538
|
{ tag: tags.labelName, color: yellow },
|
|
579
539
|
{ tag: tags.escape, color: yellow },
|