Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could any one create syntax highlighter for SAS? #515

Closed
huyingjie opened this issue Feb 27, 2015 · 8 comments
Closed

Could any one create syntax highlighter for SAS? #515

huyingjie opened this issue Feb 27, 2015 · 8 comments

Comments

@huyingjie
Copy link

I am a student in statistics and use SAS (http://sas.com) to analyze data. I am trying to write codes for SAS but fail. Could any one create syntax highlighter for SAS? Thank you in advance!

@Golmote
Copy link
Contributor

Golmote commented Feb 27, 2015

Their documentation is... huge! I'm not sure I want to dive into this. Also, I couldn't find any standard grammar defining the language...

If I read correctly the beginning of the reference, there is no concept of reserved words, which makes the matching of the keywords difficult. And I guess highlighting only the numbers and the strings would be quite pointless.

@huyingjie
Copy link
Author

@Golmote Thank you for your reply. I do not want to read the lengthy documentation, either. I searched online and found some related codes. Could you adapt their codes? Thank you in advance.

Someone wrote SAS syntax highlighter for sublime. The websites are:

https://github.com/Jiangtang/sas.tmbundle

http://www.jiangtanghu.com/blog/2012/07/13/sublimetext2-sas/

http://implementing-vdw.blogspot.com/2012/10/new-sublime-text-package-available-for.html

GeShi has SAS highlighter, too.

https://github.com/GeSHi/geshi-1.0/blob/master/src/geshi/sas.php

@Golmote
Copy link
Contributor

Golmote commented Feb 27, 2015

Fine, here it is.

@huyingjie
Copy link
Author

Thank you very much!!!!

Could you add SAS to the page http://prismjs.com/download.html ?

I use Prism through MacDown (http://macdown.uranusjr.com/features/)

I tried the fence in MacDown

~~~sas
proc logistic data=;
~~~
but it is not working. I am not sure which one affect highlighter function, prism or MacDown. If MacDown need improve, I will open an issue in MacDown's GitHub.

screen shot 2015-02-28 at 12 35 35 am

@vkbansal
Copy link
Contributor

@huyingjie The syntax definition is a PR and is still not merged. It will be merged and added once @LeaVerou reviews it.

@huyingjie
Copy link
Author

@vkbansal Thank you for your reply. What is "PR"? I hope that @LeaVerou can review it soon :-)

@vkbansal
Copy link
Contributor

vkbansal commented Mar 3, 2015

@huyingjie PR is short for "Pull Request"

@Golmote Golmote closed this as completed in 18ce84f Mar 4, 2015
LeaVerou added a commit that referenced this issue Mar 4, 2015
Add basic highlighting for SAS language. (fix #515)
@Golmote
Copy link
Contributor

Golmote commented Mar 4, 2015

@huyingjie Now it has been merged, you should see it on the download page. Please feel free to report issues as you're using it! ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants