-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
490 lines (434 loc) · 31.4 KB
/
Copy pathindex.html
File metadata and controls
490 lines (434 loc) · 31.4 KB
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
<!--
================================================================================
SynGen .msg Designer
index.html
Copyright (c) 2026 Mark Stephen Day. All Rights Reserved.
PROPRIETARY AND CONFIDENTIAL — See styles.css / app.js for full notice.
================================================================================
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SynGen .msg Designer</title>
<meta name="description" content="SynGen .msg Designer — a visual IDE for creating and editing SynEdit highlighter descriptor (.msg) files. Design token types, keyword groups, char rules and enclosures with live preview.">
<meta name="keywords" content="SynEdit, .msg, highlighter, designer, IDE, Delphi, Pascal, syntax highlighting, token types, keyword groups">
<meta name="author" content="Mark Stephen Day">
<meta name="robots" content="index, follow">
<meta property="og:title" content="SynGen .msg Designer">
<meta property="og:description" content="A visual IDE for creating SynEdit highlighter descriptor files. Design token styles, keyword groups and enclosures with live preview.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://github.com/GrooverMD/SynEditMsgDesigner">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="SynGen .msg Designer">
<meta name="twitter:description" content="Visual IDE for SynEdit .msg highlighter descriptor files.">
<link rel="canonical" href="https://github.com/GrooverMD/SynEditMsgDesigner">
<link rel="icon" href="favicon.png" type="image/png">
<link rel="icon" href="icons/favicon-16x16.png" sizes="16x16" type="image/png">
<link rel="icon" href="icons/favicon-32x32.png" sizes="32x32" type="image/png">
<link rel="icon" href="icons/favicon-48x48.png" sizes="48x48" type="image/png">
<link rel="icon" href="icons/favicon-64x64.png" sizes="64x64" type="image/png">
<link rel="icon" href="icons/favicon-128x128.png" sizes="128x128" type="image/png">
<link rel="apple-touch-icon" href="icons/favicon-180x180.png">
<link rel="icon" href="icons/favicon-192x192.png" sizes="192x192" type="image/png">
<link rel="icon" href="icons/favicon-512x512.png" sizes="512x512" type="image/png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@3.19.0/dist/tabler-icons.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:ital,wght@0,400;0,500;1,400&display=swap">
<link rel="stylesheet" href="css/styles.css">
<!-- JSON-LD Structured Data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "SynGen .msg Designer",
"url": "https://groovermd.github.io/SynEditMsgDesigner/",
"applicationCategory": "DeveloperApplication",
"description": "A browser-based tool for creating and editing SynEdit .msg files used in Delphi syntax highlighters.",
"operatingSystem": "Any",
"image": "https://groovermd.github.io/SynEditMsgDesigner/favicon.png"
}
</script>
</head>
<body>
<section class="intro">
<h1>SynGen .msg Designer – Online SynEdit Message File Editor</h1>
<p>
SynGen .msg Designer is a browser-based tool for creating and editing
SynEdit .msg files used in Delphi syntax highlighters. It provides
structured editors for KEYS, CHARS, TOKENS, and sample source sections,
validates your grammar, and exports a fully compliant .msg file for use
in custom syntax highlighters.
</p>
<p>
This tool is designed for Delphi developers working with SynEdit,
SynHighlighter, and custom language grammars. It simplifies the creation
of message files by providing a clean interface, live validation, and
instant export.
</p>
</section>
<div class="titlebar">
<div class="tl-logo">
<i class="ti ti-adjustments-horizontal"></i>
SynGen <span>.msg</span> Designer
</div>
<div class="tl-sep"></div>
<button class="tbtn tooltip" onclick="loadExample()">
<svg class="icon">
<use href="#icon-bolt"></use>
</svg>
<span class="tooltiptext">Load Example</span>
</button>
<button class="tbtn tooltip" onclick="triggerMsgOpen()">
<svg class="icon">
<use href="#icon-open"></use>
</svg>
<span class="tooltiptext">Load <span class="msg-color">.msg</span> file</span>
</button>
<button class="tbtn tooltip" onclick="triggerPasOpen()">
<svg class="icon">
<use href="#icon-import"></use>
</svg>
<span class="tooltiptext">Import <span class="msg-color">.pas</span> file</span>
</button>
<input type="file" id="pas-file-input" accept=".pas" style="display:none" onchange="onPasFileSelected(event)">
<input type="file" id="msg-file-input" accept=".msg" style="display:none" onchange="onMsgFileSelected(event)">
<button class="tbtn tooltip" onclick="clearAll()">
<svg class="icon">
<use href="#icon-trash"></use>
</svg>
<span class="tooltiptext">Clear highlighter</span>
</button>
<button class="tbtn tooltip" onclick="doValidate()">
<svg class="icon">
<use href="#icon-shield"></use>
</svg>
<span class="tooltiptext">Validate <span class="msg-color">.msg</span></span>
</button>
<button class="tbtn tooltip" onclick="showPreview()">
<svg class="icon">
<use href="#icon-export"></use>
</svg>
<span class="tooltiptext">Generate <span class="msg-color">.msg</span></span>
</button>
<button class="tbtn tooltip" onclick="window.open('https://github.com/GrooverMD/SynEditMsgDesigner/tree/main', '_blank')">
<svg class="icon">
<use href="#icon-github"></use>
</svg>
<span class="tooltiptext">Open <span class="github-color">Github</span></span>
</button>
<button class="tbtn tooltip" onclick="window.open('https://claude.ai', '_blank')">
<svg class="icon">
<use href="#icon-claude"></use>
</svg>
<span class="tooltiptext"><span class="claude-color">Claude </span>AI</span>
</button>
<button class="tbtn tooltip" onclick="openHelp()">
<svg class="icon">
<use href="#icon-help"></use>
</svg>
<span class="tooltiptext">Help</span>
</button>
</div>
<!-- ── Intro overlay ── -->
<div class="intro-overlay" id="intro-overlay">
<div class="intro-box">
<div class="intro-hero">
<div class="intro-hero-logo">SynGen <span>.msg</span> Designer</div>
<div class="intro-hero-sub">A visual IDE for creating and editing SynEdit highlighter descriptor files.<br>
Design token types, keyword groups, char rules and enclosures — then export a ready-to-use <code style="font-family:var(--mono);font-size:11px;color:var(--a)">.msg</code> file.</div>
</div>
<div class="intro-body">
<div>
<div class="intro-section-title">How to use</div>
<div class="intro-steps">
<div class="intro-step"><div class="intro-step-num">1</div><div class="intro-step-text"><b>Drag sections</b> from the Palette on the left onto the canvas lanes. Each lane accepts only its matching section type. Drop onto the lane header or the lane body.</div></div>
<div class="intro-step"><div class="intro-step-num">2</div><div class="intro-step-text"><b>Click any card</b> to open it in the Inspector on the right. Edit the name, colours, font style, keywords or delimiters. Changes are reflected instantly in the live preview.</div></div>
<div class="intro-step"><div class="intro-step-num">3</div><div class="intro-step-text"><b>Validate</b> the document to check for cross-reference errors. Problem lanes are highlighted in red with a description of each issue.</div></div>
<div class="intro-step"><div class="intro-step-num">4</div><div class="intro-step-text"><b>Generate .msg</b> to export the finished descriptor file. Copy it to the clipboard or download it directly.</div></div>
<div class="intro-step"><div class="intro-step-num">5</div><div class="intro-step-text">Click <b>Open .msg</b> to reopen a previously saved .msg file and continue editing where you left off.</div></div>
<div class="intro-step"><div class="intro-step-num">6</div><div class="intro-step-text">Click <b>Example</b> in the toolbar to load a complete x86-64 assembly highlighter and explore a real-world document.</div></div>
</div>
</div>
<div>
<div class="intro-section-title">Resources</div>
<div class="intro-links">
<a class="intro-link" href="https://github.com/GrooverMD/SynEditMsgDesigner/tree/main" target="_blank" rel="noopener"><i class="ti ti-brand-github"></i>GitHub Repository</a>
<a class="intro-link" href="https://github.com/TurboPack/SynEdit" target="_blank" rel="noopener"><i class="ti ti-external-link"></i>SynEdit Project</a>
<button class="intro-link" onclick="document.getElementById('intro-overlay').remove();openHelp()"><i class="ti ti-help-circle"></i>Read full help</button>
</div>
</div>
</div>
<div class="intro-footer">
<span class="intro-copy">Copyright © 2026 Mark Stephen Day. All Rights Reserved.</span>
<div style="display:flex;gap:10px;align-items:center">
<button class="intro-start-btn" style="background:var(--s3);color:var(--t0);box-shadow:none;border:1px solid var(--s5);margin-right:4px"
onclick="document.getElementById('intro-overlay').remove();triggerMsgOpen()">
<i class="ti ti-folder-open" style="font-size:15px;vertical-align:-2px"></i> Open .msg
</button>
<button class="intro-start-btn" style="background:var(--s3);color:var(--t0);box-shadow:none;border:1px solid var(--s5)"
onclick="document.getElementById('intro-overlay').remove();triggerPasOpen()">
<i class="ti ti-file-import" style="font-size:15px;vertical-align:-2px"></i> Open .pas file
</button>
<button class="intro-start-btn" onclick="document.getElementById('intro-overlay').remove()">Start designing →</button>
</div>
</div>
</div>
</div>
<!-- ── Help scrim ── -->
<div class="help-scrim" id="help-scrim" onclick="closeHelp()"></div>
<!-- ── Help panel ── -->
<div class="help-panel" id="help-panel">
<div class="help-hd">
<h2><i class="ti ti-help-circle" style="color:var(--a);margin-right:6px"></i>Help & Reference</h2>
<span class="help-cl" onclick="closeHelp()"><i class="ti ti-x"></i></span>
</div>
<div class="help-body">
<div class="help-section">
<h3>What is a .msg file?</h3>
<p>A <b>.msg</b> file is a SynEdit Highlighter Descriptor — a plain-text specification that the SynEdit highlighter generator uses to create a complete Delphi syntax-highlighting unit. It defines the token types, keywords, character dispatch rules and enclosure pairs for any programming language or file format.</p>
<p>SynGen .msg Designer gives you a visual canvas for building these files without writing any descriptor syntax by hand.</p>
</div>
<div class="help-section">
<h3>Canvas sections</h3>
<table class="help-table">
<thead><tr><th>Section</th><th>Purpose</th></tr></thead>
<tbody>
<tr><td>Header</td><td>Sets the generated class name (TSyn…Syn), the token-kind enum prefix, and the identifier character sets. <em>One per document.</em></td></tr>
<tr><td>Token types</td><td>Each token type becomes a value in the TtkTokenKind enumeration and a TSynHighlighterAttributes instance with its own foreground, background and font style. Add as many as your language needs.</td></tr>
<tr><td>Key groups</td><td>A KEYS block maps a list of reserved words to one token type. The group name must exactly match a token type name.</td></tr>
<tr><td>Char rules</td><td>Auto-generated from the Header's Ident start chars. Defines which characters trigger the identifier scanner and provides the BeginProc/EndProc dispatch body. Read-only.</td></tr>
<tr><td>Enclosed by</td><td>Defines delimiter pairs (e.g. <code style="font-family:var(--mono)">{ }</code>, <code style="font-family:var(--mono)">/* */</code>, <code style="font-family:var(--mono)">" "</code>) and whether they can span multiple lines.</td></tr>
<tr><td>Sample source</td><td>A block of representative code shown in the SynEdit highlighter preview dialog. <em>One per document.</em></td></tr>
</tbody>
</table>
</div>
<div class="help-section">
<h3>Preset token types</h3>
<p>The <b>Common presets</b> area in the palette provides one-click buttons for the token types found in almost every programming language. Clicking a preset:</p>
<table class="help-table">
<thead><tr><th>Preset</th><th>Auto-adds enclosure(s)</th></tr></thead>
<tbody>
<tr><td>Identifier</td><td>—</td></tr>
<tr><td>Comment</td><td>Line comment <code style="font-family:var(--mono)">;</code> and block comment <code style="font-family:var(--mono)">{…}</code></td></tr>
<tr><td>String</td><td>Double-quote string <code style="font-family:var(--mono)">"…"</code></td></tr>
<tr><td>Keyword</td><td>—</td></tr>
<tr><td>Number</td><td>—</td></tr>
<tr><td>Directive</td><td>Compiler directive <code style="font-family:var(--mono)">{$…}</code></td></tr>
<tr><td>Space / Symbol / Attribute</td><td>—</td></tr>
<tr><td>DocComment</td><td>Block doc comment <code style="font-family:var(--mono)">/**…*/</code></td></tr>
</tbody>
</table>
<p>Each preset token type is created with sensible default colours and font styles. You can customise them in the Inspector after adding them.</p>
<div class="help-tip"><i class="ti ti-info-circle"></i>When a Comment or String preset is added, matching Enclosure cards are created automatically and linked to the new token type.</div>
</div>
<div class="help-section">
<h3>Working with the canvas</h3>
<p><b>Adding sections:</b> drag a palette item onto a lane. Drop onto the lane header (<em>← drop here</em> hint) or the lane body. The lane highlights blue when the drop is valid, red when the type is wrong for that lane.</p>
<p><b>Reordering:</b> drag a card onto another card within the same lane to swap their positions. Order matters — it controls the order in the generated file.</p>
<p><b>Selecting:</b> click any card to open its properties in the Inspector. The selected card shows a blue outline.</p>
<p><b>Renaming:</b> double-click any card title to edit it in place. Press <span class="help-kbd">Enter</span> to confirm or <span class="help-kbd">Esc</span> to cancel. Works on Token type names, Key group names, and Enclosure rule names.</p>
<p><b>Removing:</b> click the <i class="ti ti-x" style="font-size:11px"></i> icon on the top-right of any card. The Char rule card cannot be removed — it is managed automatically.</p>
<p><b>Resizing panels:</b> drag the thin vertical handles between the palette, canvas and inspector to adjust panel widths.</p>
</div>
<div class="help-section">
<h3>Inspector — token type colours</h3>
<p>Each token type has independent foreground and background colour controls. Enable a colour with the checkbox, then use the colour editor:</p>
<p><b>Swatch bar:</b> the wide bar shows the current colour. Click anywhere on it to open the browser's native colour picker.</p>
<p><b>RGB sliders:</b> drag the Red, Green and Blue sliders for precise channel control. The value updates live.</p>
<p><b>Output format:</b> choose how the colour is written into the .msg file — <span class="help-kbd">Name</span> (e.g. clNavy), <span class="help-kbd">$Hex</span> (Delphi BGR format, e.g. $00800000) or <span class="help-kbd">RGB()</span> (e.g. RGB(0,0,128)).</p>
<div class="help-tip"><i class="ti ti-info-circle"></i>The live preview in the Token type inspector shows exactly how a sample code snippet will look with the current token styles applied — including keywords, enclosures and identifier colours.</div>
</div>
<div class="help-section">
<h3>Validation</h3>
<p>Click <b>Validate</b> in the toolbar to check the document for structural errors. Each problem is shown as a red highlight on the affected lane, with a badge showing the number of issues and a list of descriptions below the lane body.</p>
<p>Common issues:</p>
<table class="help-table">
<thead><tr><th>Issue</th><th>Fix</th></tr></thead>
<tbody>
<tr><td>Key group has no matching token type</td><td>Ensure the group name exactly matches a token type name (case-sensitive).</td></tr>
<tr><td>Key group has no keywords</td><td>Add at least one keyword in the Inspector.</td></tr>
<tr><td>Enclosure references unknown token type</td><td>Set Token type to an existing token type name.</td></tr>
<tr><td>No Header section</td><td>Drag a Header card from the palette.</td></tr>
</tbody>
</table>
<p>Validation errors clear automatically as soon as you make any change to the document.</p>
</div>
<div class="help-section">
<h3>Opening a saved .msg file</h3>
<p>A .msg file saved from SynGen can be reopened at any time to continue editing. Click <b>Open .msg</b> in the toolbar or the start page, then select the file.</p>
<p>The loader restores all sections exactly as they were saved:</p>
<table class="help-table">
<thead><tr><th>Section</th><th>Restored from</th></tr></thead>
<tbody>
<tr><td>Header</td><td>Class name, token prefix, ident chars (first 3 lines)</td></tr>
<tr><td>Token types</td><td>TOKENTYPES block — names and colour/style expressions</td></tr>
<tr><td>Key groups</td><td>Each KEYS block — group name and word list</td></tr>
<tr><td>Char rules</td><td>CHARS block is read then auto-regenerated from the header</td></tr>
<tr><td>Enclosures</td><td>ENCLOSEDBY block — token type, rule name, delimiters, multi-line flag</td></tr>
<tr><td>Sample source</td><td>SAMPLESOURCE block — verbatim text</td></tr>
</tbody>
</table>
<div class="help-tip"><i class="ti ti-info-circle"></i>The .msg format is the canonical save format for SynGen. Always use <b>Generate .msg → Save .msg file</b> to save, then <b>Open .msg</b> to resume. Opening a .msg file replaces the current canvas.</div>
</div>
<div class="help-section">
<h3>Generating & exporting</h3>
<p>Click <b>Generate .msg</b> to open the output modal. The generated file is syntax-highlighted for readability. Use <b>Copy to clipboard</b> to paste it into your project, or <b>Save .msg file</b> to download it directly. The filename is derived from the class name in the Header card.</p>
</div>
<div class="help-section">
<h3>Keyboard shortcuts</h3>
<table class="help-table">
<thead><tr><th>Key</th><th>Action</th></tr></thead>
<tbody>
<tr><td><span class="help-kbd">Enter</span></td><td>Add a keyword in the keyword input field</td></tr>
<tr><td><span class="help-kbd">Esc</span></td><td>Close the Generate modal or Help panel</td></tr>
</tbody>
</table>
</div>
<div class="help-section">
<h3>Opening a SynHighlighter .pas file</h3>
<p>You can reverse-parse an existing SynEdit highlighter unit to populate the designer automatically. Click <b>Open .pas</b> in the toolbar or the <b>Open .pas file</b> button on the start page, then select a <code style="font-family:var(--mono);font-size:11px;color:var(--a)">SynHighlighterXxx.pas</code> file.</p>
<p>The parser extracts:</p>
<table class="help-table">
<thead><tr><th>Extracted from</th><th>Populated in</th></tr></thead>
<tbody>
<tr><td>class TSynXxxSyn</td><td>Header — class name and token prefix</td></tr>
<tr><td>TtkTokenKind enum values</td><td>Token type cards (one per tk… value)</td></tr>
<tr><td>fXxxAttri.Style/Foreground/Background in constructor</td><td>Token type colour and font style</td></tr>
<tr><td>Keyword string constants + EnumerateKeywords calls</td><td>Key group cards with full word lists</td></tr>
<tr><td>Next procedure char dispatch (#34, #39, ';', '//', '{'…)</td><td>Enclosure cards</td></tr>
<tr><td>GetSampleSource function</td><td>Sample source card</td></tr>
<tr><td>IdentProc character ranges in Next</td><td>Header ident start chars + auto Char rule</td></tr>
</tbody>
</table>
<div class="help-tip"><i class="ti ti-info-circle"></i>The parser works on standard SynEdit highlighter units. Highly customised units may need manual correction of some token types or enclosures after import. Use Validate to check for any cross-reference issues.</div>
</div>
<div class="help-section">
<h3>About</h3>
<p>SynGen .msg Designer is copyright © 2026 <b>Mark Stephen Day</b>. All Rights Reserved.</p>
<p>Source code: <a href="https://github.com/GrooverMD/SynEditMsgDesigner/tree/main" target="_blank" rel="noopener" style="color:var(--a)">github.com/GrooverMD/SynEditMsgDesigner</a></p>
<p>Built with assistance from <a href="https://claude.ai" target="_blank" rel="noopener" style="color:var(--a)">Claude AI</a> by Anthropic.</p>
<p>SynEdit: <a href="https://github.com/TurboPack/SynEdit" target="_blank" rel="noopener" style="color:var(--a)">github.com/TurboPack/SynEdit</a></p>
</div>
</div>
</div>
<div id="app">
<!-- Palette -->
<div class="sidebar">
<div class="panel-hd">Palette</div>
<div class="pal-list" id="pal">
<div class="pal-group">Structure</div>
<div class="pc" draggable="true" data-type="header">
<div class="pc-name"><i class="ti ti-file-text" style="color:var(--lh)"></i>Header<span class="pc-once">1 max</span></div>
<div class="pc-hint">Class · prefix · ident chars</div>
</div>
<div class="pc" draggable="true" data-type="sample">
<div class="pc-name"><i class="ti ti-code" style="color:var(--ls)"></i>Sample source<span class="pc-once">1 max</span></div>
<div class="pc-hint">Preview code block</div>
</div>
<div class="pal-group">Tokens</div>
<div class="pc" draggable="true" data-type="tokentype">
<div class="pc-name"><i class="ti ti-tag" style="color:var(--lt)"></i>Token type</div>
<div class="pc-hint">Name + colour style</div>
</div>
<div class="pal-group" style="margin-top:2px;font-size:9px">Common presets</div>
<div class="pal-preset-grid">
<button class="pal-preset" onclick="addPresetToken('Identifier','','','',false,false,false)"><i class="ti ti-cursor-text" style="color:var(--lt)"></i>Identifier</button>
<button class="pal-preset" onclick="addPresetToken('Comment','clGreen','','',false,true,false)"><i class="ti ti-message" style="color:#52c98a"></i>Comment</button>
<button class="pal-preset" onclick="addPresetToken('String','clRed','','',false,false,false)"><i class="ti ti-quote" style="color:#f07070"></i>String</button>
<button class="pal-preset" onclick="addPresetToken('Key','clNavy','','',true,false,false)"><i class="ti ti-key" style="color:var(--lh)"></i>Keyword</button>
<button class="pal-preset" onclick="addPresetToken('Number','clTeal','','',false,false,false)"><i class="ti ti-number-123" style="color:#60c8c0"></i>Number</button>
<button class="pal-preset" onclick="addPresetToken('Directive','clOlive','','',false,true,false)"><i class="ti ti-hash" style="color:#f4a44a"></i>Directive</button>
<button class="pal-preset" onclick="addPresetToken('Space','','','',false,false,false)"><i class="ti ti-space" style="color:var(--t2)"></i>Space</button>
<button class="pal-preset" onclick="addPresetToken('Symbol','clGray','','',false,false,false)"><i class="ti ti-braces" style="color:#708090"></i>Symbol</button>
<button class="pal-preset" onclick="addPresetToken('DocComment','clNavy','','',false,true,false)"><i class="ti ti-message-2-code" style="color:#70a8d8"></i>DocComment</button>
<button class="pal-preset" onclick="addPresetToken('Attribute','clPurple','','',false,false,false)"><i class="ti ti-at" style="color:#9d8cff"></i>Attribute</button>
</div>
<div class="pal-group">Keywords</div>
<div class="pc" draggable="true" data-type="keygroup">
<div class="pc-name"><i class="ti ti-list" style="color:var(--lk)"></i>Key group</div>
<div class="pc-hint">KEYS keyword list</div>
</div>
<div class="pal-group">Rules</div>
<div class="pc" draggable="true" data-type="enclosure">
<div class="pc-name"><i class="ti ti-brackets" style="color:var(--le)"></i>Enclosure</div>
<div class="pc-hint">ENCLOSEDBY pair</div>
</div>
</div>
</div>
<!-- Left resize handle -->
<div class="resizer" id="rz-left" title="Drag to resize palette"></div>
<!-- Canvas -->
<div class="canvas-col">
<div class="canvas" id="canvas"></div>
</div>
<!-- Right resize handle -->
<div class="resizer" id="rz-right" title="Drag to resize inspector"></div>
<!-- Inspector -->
<div class="insp">
<div class="panel-hd">Inspector</div>
<div class="insp-body" id="insp"></div>
</div>
</div>
<!-- Icons -->
<svg style="display:none;">
<symbol id="icon-close" viewBox="0 0 24 24">
<path d="m 12,2.5 c -5.238248,0 -9.5,4.261752 -9.5,9.5 0,5.238236 4.261752,9.5 9.5,9.5 5.238248,0 9.5,-4.261764 9.5,-9.5 0,-5.238248 -4.261752,-9.5 -9.5,-9.5 z m 5.380105,13.257899 a 1.1474467,1.1474467 0 1 1 -1.622203,1.622202 L 11.97921,13.602148 8.2005384,17.380101 A 1.1474467,1.1474467 0 0 1 6.5783357,15.757899 L 10.356288,11.979227 6.5783357,8.2005343 A 1.1474467,1.1474467 0 0 1 8.2005384,6.5783333 L 11.97921,10.356305 15.757902,6.5783333 a 1.1474467,1.1474467 0 0 1 1.622203,1.622201 l -3.777973,3.7786927 z" />
</symbol>
<symbol id="icon-bolt" viewBox="0 0 24 24">
<path d="M13 3v7h6l-8 11v-7H5l8-11" />
</symbol>
<symbol id="icon-open" viewBox="0 0 24 24">
<path d="M5 19l2.757 -7.351a1 1 0 0 1 .936 -.649h12.307a1 1 0 0 1 .986 1.164l-.996 5.211a2 2 0 0 1 -1.964 1.625h-14.026a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2" />
</symbol>
<symbol id="icon-import" viewBox="0 0 24 24">
<path d="M14 3v4a1 1 0 0 0 1 1h4" />
<path d="M5 13v-8a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-5.5m-9.5 -2h7m-3 -3l3 3l-3 3" />
</symbol>
<symbol id="icon-trash" viewBox="0 0 24 24">
<path d="M4 7l16 0" />
<path d="M10 11l0 6" />
<path d="M14 11l0 6" />
<path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" />
<path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" />
</symbol>
<symbol id="icon-shield" viewBox="0 0 24 24">
<path d="M11.46 20.846a12 12 0 0 1 -7.96 -14.846a12 12 0 0 0 8.5 -3a12 12 0 0 0 8.5 3a12 12 0 0 1 -.09 7.06" />
<path d="M15 19l2 2l4 -4" />
</symbol>
<symbol id="icon-export" viewBox="0 0 24 24">
<path d="M14 3v4a1 1 0 0 0 1 1h4" />
<path d="M11.5 21h-4.5a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v5m-5 6h7m-3 -3l3 3l-3 3" />
</symbol>
<symbol id="icon-github" viewBox="0 0 24 24">
<path d="m 9.5,18.961157 c -4.3,1.4 -4.3,-2.5 -6,-3 m 12,5 v -3.5 c 0,-1 0.1,-1.4 -0.5,-2 2.8,-0.3 5.5,-1.4 5.5,-6 a 4.6,4.6 0 0 0 -1.3,-3.2 4.2,4.2 0 0 0 -0.1,-3.2 c 0,0 -1.1,-0.3 -3.5,1.3 a 12.3,12.3 0 0 0 -6.2,0 c -2.4,-1.6 -3.5,-1.3 -3.5,-1.3 a 4.2,4.2 0 0 0 -0.1,3.2 4.6,4.6 0 0 0 -1.3,3.2 c 0,4.6 2.7,5.7 5.5,6 -0.6,0.6 -0.6,1.2 -0.5,2 v 3.5" id="path330" />
</symbol>
<symbol id="icon-claude" viewBox="0 0 24 24">
<path d="m 6.2271329,15.135071 3.7386799,-2.096456 0.062866,-0.182072 -0.062866,-0.101279 H 9.7836218 L 9.1587988,12.716788 7.0225941,12.659106 5.1699322,12.582178 3.3750078,12.486008 2.92339,12.389838 2.5,11.832068 l 0.043626,-0.278239 0.3797677,-0.25517 0.543997,0.04745 1.2021737,0.08207 1.803908,0.124381 1.3086644,0.07693 1.9386183,0.201312 h 0.3079204 l 0.04366,-0.124382 -0.1052103,-0.07693 -0.08211,-0.07693 L 8.0182447,10.288287 5.9975088,8.9521995 4.9390298,8.182858 4.3668083,7.7930588 4.0781271,7.4276209 3.9536836,6.630073 4.4733008,6.0581952 5.1712541,6.1056484 5.3495863,6.1531015 6.0565206,6.696769 7.5666152,7.8648858 9.5385997,9.3163741 9.8272809,9.556135 9.9427459,9.4740624 9.9568065,9.4163674 9.8272171,9.1996757 8.7546236,7.2622199 7.6101856,5.291428 7.1008289,4.4746433 6.9661235,3.9848319 c -0.047491,-0.2013122 -0.08211,-0.370566 -0.08211,-0.5770062 l 0.5914618,-0.8026798 0.3271684,-0.1051443 0.7890507,0.1051443 0.3323005,0.2885029 0.490105,1.120673 0.7941822,1.7643533 1.231685,2.3990595 0.360522,0.7116403 0.192454,0.6590687 0.07184,0.2013114 h 0.124442 V 9.6343525 l 0.101367,-1.3514748 0.187307,-1.6592103 0.182192,-2.1349196 0.06287,-0.6013685 0.297657,-0.7206141 0.591465,-0.3897992 0.461883,0.2205513 0.379768,0.5436674 -0.0526,0.3513352 -0.225816,1.4668737 -0.442639,2.2977627 -0.288681,1.5386818 H 13.61207 L 13.804521,9.0035028 14.583305,7.9700214 15.891969,6.3351737 16.469326,5.6863631 17.1429,4.9695944 17.575271,4.6285191 h 0.817275 l 0.601734,0.8937189 -0.269442,0.9232085 -0.841651,1.0668175 -0.697955,0.9039757 -1.000746,1.3463477 -0.624821,1.0770746 0.05774,0.0859 0.148829,-0.01406 2.260655,-0.480837 1.22142,-0.220552 1.457496,-0.2500245 0.659466,0.3077365 0.07184,0.312865 -0.259178,0.639835 -1.558849,0.384671 -1.828287,0.365436 -2.722534,0.64368 -0.03337,0.02424 0.03851,0.04745 1.226551,0.115402 0.52475,0.02812 h 1.284285 l 2.391519,0.178212 0.624821,0.412881 0.374671,0.505207 -0.06287,0.384671 -0.962255,0.489815 -1.298401,-0.307737 -3.030458,-0.720613 -1.039231,-0.259 h -0.143682 v 0.0859 l 0.866029,0.846274 1.587075,1.432251 1.987376,1.846422 0.101342,0.456475 -0.255319,0.36031 -0.269441,-0.03848 -1.746172,-1.313012 -0.673577,-0.591108 -1.525491,-1.283518 H 14.93355 v 0.134647 l 0.351546,0.514176 1.856509,2.788857 0.09622,0.855255 -0.134707,0.278239 -0.481129,0.167979 -0.528596,-0.09617 -1.086704,-1.524577 -1.121348,-1.716913 -0.904519,-1.538679 -0.110345,0.06284 -0.533724,5.745698 -0.250201,0.293619 -0.577343,0.220549 -0.481129,-0.36544 -0.255318,-0.591111 0.255318,-1.168114 0.307921,-1.52458 0.250203,-1.211709 0.225816,-1.505345 0.134706,-0.500071 -0.009,-0.03333 -0.110357,0.01406 -1.135458,1.557926 -1.7269226,2.332389 -1.3663994,1.461745 -0.3271695,0.129501 -0.5670868,-0.29362 0.052599,-0.524434 0.3169002,-0.466734 1.8911515,-2.404188 1.1405866,-1.489955 0.736448,-0.86038 -0.0052,-0.12438 h -0.04366 l -5.0229631,3.259439 -0.8942537,0.115403 -0.3849021,-0.360308 0.047478,-0.591112 0.182191,-0.192335 1.5100971,-1.038611 -0.00513,0.0051 z" />
</symbol>
<symbol id="icon-help" viewBox="0 0 24 24">
<path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0" />
<path d="M12 16v.01" />
<path d="M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483" />
</symbol>
</svg>
<footer class="footer-panel">
<p>
SynGen <span class="msg-color">.msg</span> Designer a tool for Delphi developers
working with SynEdit syntax highlighters, token definitions, keyword
sets, and grammar-based editors. This tool streamlines the creation of
<span class="msg-color">.msg</span> files used in custom SynEdit syntax highlighters. <span class="msg-color">© 2026 Mark Stephen Day - GrooverMD.</span>
</p>
</footer>
<!-- parser.js: colour data, .msg generator, .msg loader, .pas parser -->
<script src="js/parser.js">
</script>
<!-- exporter.js: preview modal, clipboard, download, toast -->
<script src="js/exporter.js">
</script>
<!-- app.js: LANE_CFG, doc model, UI rendering, highlighting -->
<script src="js/app.js">
</script>
</body>
</html>