You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 006ca60
Browse filesBrowse the repository at this point in the historyBrowse files
Go into your Obsidian Settings / Community Plugins and enable it.
13
17
18
+
Or install it directly via the Obsidian Community Plugins portal
19
+
14
20
## Usage
15
21
### Codeblock Syntax
16
-
To use executable Codeblocks define a Codeblock with the language "cbpp".
22
+
To use executable Codeblocks define a Codeblock with the language "cbpp". This language should ideally be registered in your settings under [Registered Languages](#registering-languages)
17
23
18
24
Settings for a specific Codeblock can be specified by the "@cbpp:" prefix.
19
25
~~~markdown
@@ -53,6 +59,15 @@ This allows for a much cleaner syntax.
53
59
In order to execute Codeblocks you need to register languages with an interpreter
| Name |\<string> | The default name of the language, to be primarily used for the lang [Codeblock property](#list-of-codeblock-settings)|
65
+
| Aliases |\<string> | A comma seperated string of alternative names to specify the language for a Codeblock |
66
+
| Executable |\<string> & \<string> | The first field specifies the path to the executable binary file of the interpreter you want to use to run this language. The second one specifies any additional flags or arguments you want to pass to the executable |
67
+
| Preamble |\<multiline string> | Lets you specify code you want to run before each Codeblock written in that language. For example things like imports or constants |
68
+
69
+
Languages can also always be deleted if they aren't provided by the plugin by default.
70
+
56
71
## Credits
57
72
-[Shiki](https://github.com/shikijs/shiki), used for Syntax highlighting in rendered Codeblocks
0 commit comments