SAS Code Syntax Highlighting
From sasCommunity
At the sasCommunity.org Panel Discussion at SAS Global Forum 2009 one of requested features was a way to display highlighted SAS code.
/* Highlighted SAS Code */ proc print data = sashelp.class; title "My Title"; run;
The feature is now available thanks to the GeSHi extension. To highlight your SAS code, use the <source> tag as follows:
<source lang="sas">
Your SAS code goes here
</source>
or use the template below.
See the following samples for examples of the highlighting.
- Tips:PROC TRANSPOSE, using the IDLABEL to label the variable created
- Tips:Setting_Browser_Title with the stpbegin macro
- Get the Metadata Path for the Currently Running Stored Process#storedProcessPath Macro Source Code
- Sample STARTPAGE/COLUMNS Program
The extension also supports highlighting a number of other languages such as XML, SQL, and so on.
SAS Code Template
|
To create a Web page with SAS code, enter a descriptive article title here and click the Add SAS Code button to access the simple template form. Note: you must log-in or create sasCommunity.org UserID first |