Frontmatter
| id | 3778 |
| title | main.addon.HighlightJS: add a Neo.config for selecting the initial theme |
| state | Closed |
| labels | enhancementstale |
| assignees | [] |
| createdAt | Jan 4, 2023, 5:57 PM |
| updatedAt | Sep 14, 2024, 4:26 AM |
| githubUrl | https://github.com/neomjs/neo/issues/3778 |
| author | tobiu |
| commentsCount | 4 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Sep 14, 2024, 4:26 AM |
main.addon.HighlightJS: add a Neo.config for selecting the initial theme

Dinkh
Jan 4, 2023, 7:09 PM
I updated HighlightJS (#3779). Now you can use:
Neo.main.addon.HighlightJS.switchTheme('light');
Neo.main.addon.HighlightJS.switchTheme('dark');
Neo.main.addon.HighlightJS.switchTheme('./path/to/css/file.css');
Is that good enough?

tobiu
Jan 4, 2023, 9:37 PM
for dynamically switching themes yes. for the initial theme no :)
i will add the config as well.
@github-actions - 2024-08-30T02:27:20Z
This issue is stale because it has been open for 90 days with no activity.
- 2024-08-30T02:27:21Z @github-actions added the
stalelabel
@github-actions - 2024-09-14T02:26:21Z
This issue was closed because it has been inactive for 14 days since being marked as stale.
- 2024-09-14T02:26:21Z @github-actions closed this issue
(No description provided)