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

Added Sophia syntax workaround #2

Merged
merged 2 commits into from Aug 10, 2019
Merged

Conversation

mradkov
Copy link
Contributor

@mradkov mradkov commented Aug 10, 2019

Until microsoft/monaco-languages#67 is accepted and introduced in monaco-editor (hopefully sooner: microsoft/monaco-editor#1543), I've created a workaround for the Sophia syntax.

Since ngx-monaco-editor depends on monaco-editor and it depends on the languages in monaco-languages. I've built and released a fork of ngx-monaco-editor which introduces the changes here: https://github.com/mradkov/ngx-monaco-editor/releases/tag/sophia

The workaround consists of a bash script which is downloading and extracting this release after being run.

I've added npm run sophia script which is doing this and added it to the npm start and npm build scripts as well.

Result:
изображение

@nikita-fuchs nikita-fuchs merged commit 67e2a54 into aeternity:master Aug 10, 2019
@nikita-fuchs
Copy link
Collaborator

Hahah you're crazy, thanks man! I got it looking in a similar manner with Monaco's monarch whatever, but it's really unclear to me how to introduce other colors. Existing highlighters for other languages leave no clue how they make monaco assign different CSS classes to various tokens/elements.

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

Successfully merging this pull request may close these issues.

None yet

2 participants