Hello,
I'm new to editorial,but I have some experience with Pythonista...
I was trying to create a Syntax Highlighting workflow for highlighting python code in markdown files.
I set the variable selected text to text
entered this python script:
#coding: utf-8
from pygments import highlight
from pygments.lexers import PythonLexer
from pygments.formatters import HtmlFormatter
import workflow
code = workflow.get_input()
output=highlight(code, PythonLexer(), HtmlFormatter())
workflow.set_output(output)
and added html preview
but..what code do I have to enter in html preview?