mProjectsCode / obsidian-js-engine-plugin

https://www.moritzjung.dev/obsidian-js-engine-plugin-docs/
GNU General Public License v3.0
73 stars 5 forks source link

How to trigger execution of a code block #22

Closed ujikol closed 1 month ago

ujikol commented 1 month ago

I recognize no new functionality beside the command Execute JS File.

How can I execute a code block? There is no command, no icon in any bar, no icon at the code block.

Not a word about it in the readme and the documentation.

mProjectsCode commented 1 month ago

You create a code block with the language set to js-engine. This code block will then auto run.

ujikol commented 4 weeks ago

Ah, the trigger is your own "language". Is there a way to activate syntax highlighting like in js blocks?

mProjectsCode commented 4 weeks ago

The js-engine code blocks should have the same highlighting as normal js code blocks.

image