poush / LatexGo

When Latex meets JS (.... 👀 emscripten) = SuperFast builds
MIT License
4 stars 9 forks source link

Add latex snippets/code completion in ACE editor #10

Open shashaBot opened 4 years ago

shashaBot commented 4 years ago

This task requires: To create a snippets file in the root directory, latex.snippets which will be them imported in ACE editor instance. For now, you can create the file with 1-2 snippets and then we can extend it later.

chhavi18387 commented 4 years ago

@shashaBot Could you please elaborate what we need to do in this issue?

shashaBot commented 4 years ago

Snippets are the piece of editor that powers things like autocomplete and bracket matching when the user presses [TAB]. We want to enable this for latex in ACE editor. ACE does not provide latex snippets on its own but fortunately, it has a mechanism through which we can create and register snippets for any language. That is precisely what we want to do.

Please see this file for example. The documentation for snippets is here.

Since creating an exhaustive snippets file would be difficult for any one individual we would like multiple collaborators on this issue.

escher-m commented 4 years ago

My teammate and I would like to work on this issue. Please assign this to @chhavi18387 and I. -Team BigUhOh (RGSoC '20)

chhavi18387 commented 4 years ago

@shashaBot Could you please help us figure out where to import latex.snippets file so that we can verify our code?

shashaBot commented 4 years ago

Please go through this: https://github.com/ajaxorg/ace/issues/3656 Try to make it work and report back if you face issues 👍

chhavi18387 commented 4 years ago

Okay!