Is there a way to choose a default look&feel #203
Answered
by
andre-dietrich
tilman-schieber
asked this question in
Q&A
-
Is there a way to add a default "code theme" or "color theme" to a liascript file? So that it starts in dark-mode, or with a certain syntax highlighting theme enabled? |
Beta Was this translation helpful? Give feedback.
Answered by
andre-dietrich
Sep 27, 2024
Replies: 1 comment 1 reply
-
You could do this via accessing <!--
dark: true
@onload
window.LIA.settings.editor = "dreamweaver"
window.LIA.settings.theme = "red"
@end
-->
# My Custom Settings
```javascript
// all settings are also accessable via the LIA object
console.log(window.LIA.settings)
// change the editor theme
window.LIA.settings.editor = "ambiance"
```
<script>@input</script> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tilman-schieber
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could do this via accessing
window.LIA.settings
. All settings there mirror the user settings and can be inspected and modified ... however the user can change them back ;-)Live Example