Commit 3f5bb28
Keep toolbar visible on Try it and highlight static code examples
Only hide the code body (.fn-card__code) when clicking Try it,
keeping the toolbar visible. Add a highlightLua() JS function that
reuses the same regex logic as the tiny-web-editor highlight() to
syntax-highlight all static code examples on page load.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 34e0f40 commit 3f5bb28
1 file changed
+18
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
297 | 311 | | |
298 | 312 | | |
299 | 313 | | |
300 | 314 | | |
301 | 315 | | |
302 | | - | |
| 316 | + | |
303 | 317 | | |
304 | | - | |
305 | | - | |
| 318 | + | |
| 319 | + | |
306 | 320 | | |
307 | 321 | | |
308 | 322 | | |
| |||
0 commit comments