James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.72k stars 535 forks source link

Highliting log outputs #3078

Open tamuratak opened 2 years ago

tamuratak commented 2 years ago

We can now set a language id to output channels:

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.

jlelong commented 2 years ago

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?

tamuratak commented 2 years ago

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.

tamuratak commented 2 years ago

The API has been available on the stable releases sine v1.66.0.

wzh4464 commented 2 years ago

It will be a great help! Thank you, developers.

ajinkya-k commented 3 months ago

I would like to second this request!