Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation Request: How To Add New Languages #3

Open
brandondrew opened this issue Dec 29, 2022 · 2 comments
Open

Documentation Request: How To Add New Languages #3

brandondrew opened this issue Dec 29, 2022 · 2 comments

Comments

@brandondrew
Copy link

This plug-in looks awesome!

I would love to use it with Ruby, and possibly other languages as well (Go, Zig, & Crystal).
Any directions on how to add new languages would be appreciated.

@mokeyish
Copy link
Owner

Good ideas, but there only three ways to Add New Languages:

  • http api(allow CORS)
    eg. rust、kotlin

    Note: the https://go.dev/play/ didn't allow CORS.

  • wasm
    eg. python

  • js/ts
    compiles to js and run in sandbox.

@mokeyish
Copy link
Owner

The example code of Add New Languages was written here:
https://github.com/mokeyish/obsidian-code-emitter/tree/master/src/backend/languages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants