-
Notifications
You must be signed in to change notification settings - Fork 24
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
Cairo code formatter #37
Comments
Hi @mazurroman 👋 Do you already have an idea of how to format Cairo code from the front-end ? I've investigated a bit to see how to do that but I didn't find any quick solution:
Then, if you have an idea about how this code formatting should be implemented, I'm available to do it ;-) |
Hi @remybar thank you for listing all available options, it's very clear and helpful. Let's wait for @barabanovro to suggest which option is the best. |
@mazurroman I would suggest using the |
@barabanovro I am not a fan of forks and we should avoid them wherever possible. Everything in Starknet is under heavy development. Forking I like the idea to use WASM here. @barabanovro can you create an issue on the |
This issue is blocked by cryptonerdcn/wasm-cairo#15 |
Note: cryptonerdcn (owner of the |
Let's add a code-format button next to the permalink button. Clicking the button should reformat the Cairo code so that users don't need to manually set indentation.
For the icon, I suggest to use one of these three icons from https://remixicon.com/ :
code-line
,code-s-line
,code-s-slash-line
but we're open to hear other icon suggestionsThe text was updated successfully, but these errors were encountered: