I would like to find the best code markdown (*.md
) for using when commenting on issues or markdown pages when discussing logfiles.
Typically log files have the file type *.log
and starts with a timestamp in various formats. I would like some of thse to be automatically highlighted in github, just like other code (like cpp, bash
etc.).
What is the best language option to use for log files when writing in Github markdown?
You can try with JavaScript for some logs coming from the browser console.
I submitted an issue on GitHub with this and the result is much nicer than with plaintext.
index.html:1 Access to image at 'https://ars.els-cdn.com/content/image/1-s2.0-S0079670019302035-gr6_lrg.jpg' from origin 'app://obsidian.md' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
plugin:obsidian-image-toolkit:1160
GET https://ars.els-cdn.com/content/image/1-s2.0-S0079670019302035-gr6_lrg.jpg net::ERR_FAILED 200 (OK)
copyImage @ plugin:obsidian-image-toolkit:1160
ContainerView.clickImgToolbar @ plugin:obsidian-image-toolkit:2078