-
Notifications
You must be signed in to change notification settings - Fork 116
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 for browser use? #244
Comments
that Readme shows a basic implementation of VSCode's TextMate in javascript are you not able to import (require) other packages in the web? oniguruma is the regex library that TextMate uses
you can use the Vue has a syntax playground, idk if it's any use to you Why are you wanting to use the VSCode's TextMate library? |
I think your assessment is 100% correct, those other libraries are a more appropriate choice. Picked highlight.js and within 1 hour had it working, embedded in my own editor and integrated. The quality of the docs may be indicative of the code quality. I'll leave this ticket open to nudge the VSCode team into improvement. |
Everything needed to make this library work in the browser is at If your use is in an extension and not a library of your own, this is the best way to bundle const uri = vscode.Uri.joinPath(context.extensionUri, 'node_modules/vscode-oniguruma/release/onig.wasm');
const stream = fetch(uri.toString());
await vscodeOniguruma.loadWASM({ data: await stream });
|
I just want to use this library, as a library, not as VSCode accessory. Is that supported?
Do you need help making it useful for the community?
If you direct me towards understanding how this can be used for a browser project, I promise to make a PR for a sensible, helpful README and some use cases.
Because right now it's a total mess, like the original writer was promoted to management in 2018 or something.
What is this README???
The text was updated successfully, but these errors were encountered: