Skip to content

obsidian/setting-components/code-highlighter-component

Contains a component that displays and edits multiple text values.

ClassDescription
CodeHighlighterComponentA component that displays and edits code. You can add this component using SettingEx.addCodeHighlighter. In order to add the styles for the component, use initPluginContext in your plugin’s onload() function. Alternatively, you can copy styles from https://github.com/mnaoumov/obsidian-dev-utils/releases/latest/download/styles.css.