Here is the offline option (I know what you're asking about an online tool, but just in case ...)
I use standalone blog post processing tools with sample html source code and then just post html.
This is really true:
- source code offset at least 4 spaces and indicate the language on the first line as
:::html - run the file through:
python script:
import markdown html = markdown.markdown(text,['codehilite'])
I set markdowns using pigments, maybe you can just use pygments for the source code. You will run the file the script suggested, and then copy the html to your blog.
You can reset the css style, select the syntax from pygments, and then either link to it, or include it in your page. I am not sure if Wordpress supports this.
Here's how to set up markdown using pigments to highlight syntax (for Blogger, the only specificity for Blogger is that it updates Blogger css with css to highlight the code).
stefanB Jan 18 2018-10-18T00: 00J
source share