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

Syntax highlight wat code inside HTML script sections #19

Open
hippietrail opened this issue Oct 13, 2019 · 0 comments
Open

Syntax highlight wat code inside HTML script sections #19

hippietrail opened this issue Oct 13, 2019 · 0 comments

Comments

@hippietrail
Copy link

hippietrail commented Oct 13, 2019

I think I'm not the only one experimenting with hand-coding wasm text in single-file web pages by pugging wat code in a script section of the HTML page with type set to "application/wasm" and building it with the wasm port of wabt right in my webpage.

The plus is I only have to send one file to a friend or device, don't have to worry about the browser not wanting to load some things from the filesystem for security, etc. The minus is I can only get wat syntax highlighting when it's in a separate file so far.

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

1 participant