mysql - syntax highlighting while rendering SQL using knitr -


knitr execute sql code using engine='mysql' not highlight syntax:

\documentclass{article} \begin{document} <<engine='mysql', engine.opts="-h localhost">>= show databases; @ \end{document} 

on other hand using engine='highlight' highlight code not execute it.

\documentclass{article} \begin{document} <<engine='highlight', engine.opts='-s sql -o latex'>>= show databases; @ \end{document} 

is there way have code executed and syntax highlighted using 1 chunk?

i added support syntax highlighting mysql engine in knitr. can use knitr (>= 1.12.7), on github.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -