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

Compiled Javascript tab on documentation examples. #118

Open
ericvida opened this issue May 8, 2020 · 3 comments
Open

Compiled Javascript tab on documentation examples. #118

ericvida opened this issue May 8, 2020 · 3 comments
Assignees

Comments

@ericvida
Copy link
Member

ericvida commented May 8, 2020

I'm thinking that it might be good to have a way to view compiled Javascript on the documentation examples. It might be helpful to some people, to learn what the syntax is actually doing.

@aalemayhu
Copy link
Member

aalemayhu commented May 10, 2020 via email

@familyfriendlymikey familyfriendlymikey self-assigned this Sep 29, 2022
@familyfriendlymikey
Copy link
Member

Had this same idea Eric!! You beat me by two years 😂

I'd like to implement a [compiled] flag for snippets and figure out how to elegantly display the compiled code.

```imba
# [preview=console] [compiled]
console.log "test"
```

I added compiled JS to a new tab manually a few times, but it feels like there must be a way to display the compiled code without making the user click, maybe directly attached to the snippet in a slightly smaller font or something.

@haikyuu
Copy link
Contributor

haikyuu commented Oct 1, 2022

@familyfriendlymikey I recall Sindre had a hidden feature somewhere that displayed compiled imba code as a comment in the end of the current file. (vscode ext or scrimba editor, don't remember)

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

4 participants