Known issues: Can't work in windows until copy-paste support this feature
Open code file or select code snippet in Text Editor, then press F1 and then select/type Copy Syntax, or right click the Text Editor and then click Copy Syntax in context menu, the code with syntax highlight will copy to clipboard.
To select language to run, use press F1 and then select/type Copy Syntax as ..., then type the language: e.g php, js, bash...
Press F1 in VSCode, type ext install and then look for copy-syntax.
python is required by pygmentize
copy-syntax.defaults.lang: the default language is js
copy-syntax.defaults.format: currently is only support rtf, feel free to PR.
copy-syntax.showMessage: set to false to skip boring success message
copy-syntax.formatters.rtf: RtfFormatter options
fonsize is specified in half points. The default is 24 half-points, giving a size 12 font.