mcaceresb / highlight-sas-stata Goto Github PK
View Code? Open in Web Editor NEWCollection of various implementation of SAS and Stata highlighting
Collection of various implementation of SAS and Stata highlighting
As I mentioned previously, Pygments hadn't had a release/any development since January 2017. They recently released an updated version, so it might be of interested to make a PR to update the repo's Stata/Mata files.
As of Pandoc 2.0 I think, Pandoc uses the Skylighting library. Currently this doesn't color SAS or Stata code. This library is used for PDF, HTML, and docx output, so it would be useful to have syntax highlighting. I think there are currently some filters around that you can use to use Pygments instead, but only for PDF output of course.
Have you seen a Stata syntax file that uses the KDE XML syntax? If not I'll probably start my own from scratch, but won't spend a crazy amount of time on it.
I haven't checked the output of pygments, but it appears that the operators
key isn't called from anywhere... These are the only two occurrences of operators
highlight-sas-stata/pygments/pygments/lexers/stata.py
Lines 90 to 94 in 22e29c3
It appears that HighlightJS is finally maintained again, or at least has someone active who is interested in merging things!!!
One bug I've noticed, closing parentheses don't get highlighted:
This is present in both the HTML and PDF exports from Jupyter Notebook. I think that means it's a Pygments problem, but I'm not sure.
Do you have any ideas for how to create a current list of keywords and functions? It appears that someone made the widely used lists and then everyone else used the same ones. So they don't include ustrregexm
(or probably other Stata 14 functions).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.