LaTeX-Workshop icon indicating copy to clipboard operation
LaTeX-Workshop copied to clipboard

Highliting log outputs

Open tamuratak opened this issue 3 years ago • 5 comments

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.

tamuratak avatar Feb 10 '22 04:02 tamuratak

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?

jlelong avatar Feb 10 '22 08:02 jlelong

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

tamuratak avatar Feb 10 '22 11:02 tamuratak

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

tamuratak avatar May 19 '22 01:05 tamuratak

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

wzh4464 avatar Nov 08 '22 01:11 wzh4464

I would like to second this request!

ajinkya-k avatar Jul 24 '24 21:07 ajinkya-k