-
Notifications
You must be signed in to change notification settings - Fork 52
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
feature: sagetex implementation #868
Comments
@marrsus Thanks for the suggestion. To provide code completion, I think the following steps would be required:
Overall, this is a lot of effort. If you just need syntax highlighting, then, this does not need to be done in the server. In fact, the server does not currently provide syntax highlighting yet. The steps depend on the LSP client / editor. If you are using |
sounds like this is a little over my level, so i don't know if a can implement it myself, but thanks for the help anyway, and thanks for the tree-sitter tip, that is one less thing to miss. just for the record sagemath is basically like a library for python so if someone wanted to use an outside LSP server it would likely be a python one |
i really want this feature as well and i have looked into it. |
Thanks for tackling this!
Please let me know, if you need further assistance! |
@pfoerster for the parser how am i best to add sagetex i see the option to add it in the content function or the begin environment function i figure that i have to take it as the sagetex portion should interfere with the regular latex |
@thelonesomeprogrammer I would not add it to the
In this case, it would be better to let the parser treat it as a verbatim environment and just let it search for the |
I have not used VSCode in a while, but I believe syntax highlighting for latex is performed by vscode itself and not the language server. If one wants syntax highlighting to work, the best way would probably be to inject a grammar into the syntax of VSCode. The website has a long guide on syntax. Maybe there is also a guide somewhere that does exactly what you want. For Autocomplete, there is also a section on how one does this for language servers. But I believe that this is a lot more work. The syntax highlighting seems quite doable. |
is it possible to add sagetex implementation
i am a math student and i use latex for my assignments i do a lot of all of my calculations in sagetex i would really love to have code completions and highlighting while inside sage blocks i know a bit of rust myself and would be happy to help but someone need to point my in the right direction
The text was updated successfully, but these errors were encountered: