LaTeX-Workshop
LaTeX-Workshop copied to clipboard
Highliting log outputs
We can now set a language id to output channels:
- https://github.com/microsoft/vscode/issues/19561#issuecomment-1032641929
With the feature, we can highlight the outputs with custom language syntax, e.g., latex-workshop-log.tmLanguage.json
, latex-workshop-compiler-log.tmLanguage.json
.
@jlelong I think these files do not fit with jlelong/vscode-latex-basics. We had better create them on LaTeX Workshop's side. They don't have to be comprehensive. Even if they are basic ones, they would be very useful.
If you are not interested, I would like to make them.
Colorising compiler outputs would be nice. The related syntax files would go in LaTeX-Workshop. I can have a look it. Is the proposed API already in the Insider version?
Is the proposed API already in the Insider version?
Yes. You have to set "enabledApiProposals": ["outputChannelLanguage"],
in package.json
, and download vscode.proposed.outputChannelLanguage.d.ts
.
- https://code.visualstudio.com/api/advanced-topics/using-proposed-api
- https://github.com/microsoft/vscode/blob/1ecb5f53a739dd84c66b51e2be1ea7f440141db7/src/vscode-dts/vscode.proposed.outputChannelLanguage.d.ts
The API has been available on the stable releases sine v1.66.0.
- https://code.visualstudio.com/updates/v1_66#_output-channel-with-custom-language-id
It will be a great help! Thank you, developers.
I would like to second this request!