My goals is to have as a bare minimum have ```swift being recognised and being color coded.
I have the following simple example document:
```swift // Example 1 let x: Int = 3 ``` [---] ```language-swift // Example 2 let x: Int = 3 ``` [---] ``` // Example 3 let x: Int = 3 ```
Making example 1 work is the goal. I prefer example 1 over example 2 because it is 1) less typing 2) I have many existing documents that use the example 1 format.
Result: Example 2 now works. This is not my goal.
For the CSS I choose:
Result: None of the examples works
Result: All of the examples work
Keep the settings identical to “Add init code to the document”. Additionally also enable Prism in the preferences.
Result: All of the examples work however example 1 and example 3 have lost their background. Apparently Prism interacts with the
nightlight.js code. Beside the background, other effects may be present.
Although the extra line at the top of the document seems minor, it is not. If I now open this document in another editor (
DevonThink should support
highlight.js out of the box. So just add
Hightlight.js support and add a dropdown for the known stylesheets. This should include a style ‘none’ so that it can be overridden by the