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

Code highlight #7

Open
ad-m opened this issue Jan 6, 2018 · 3 comments
Open

Code highlight #7

ad-m opened this issue Jan 6, 2018 · 3 comments

Comments

@ad-m
Copy link

ad-m commented Jan 6, 2018

I suggest to introduce a syntax coloring mechanism in the editor. Parallel coding is valuable, for example, when collaborating on a group task in college.

Since there is a text field, it seems that it is possible to enter the choice of syntax coloring and to color the text field.

@sunny-b
Copy link
Contributor

sunny-b commented Jan 6, 2018

Thanks for the suggestion! I agree that parallel coding is very handy.

For the scope of this project we wanted to focus more on the collaborative aspect than the editor itself. That's why we decided to keep it rather simple and just use markdown.

Currently our Editor logic is dependent on the SimpleMDE library. However, it wouldn't be too difficult to abstract away the basic editor functionality into its own class and make it editor agnostic. That would allow you to swap in a code editor, like Ace, that supports syntax highlighting and only have to change the API endpoints.

@darkrishabh
Copy link

What about just integrating HighlightJS to the text? I am going to try it out and try a PR.

@sunny-b
Copy link
Contributor

sunny-b commented Apr 16, 2018

I'm not familiar with that library but definitely feel free! I would be interested in any PR that implemented it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants