SAS Code Syntax Highlighting

From sasCommunity
Jump to: navigation, search

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.

The extension also supports highlighting a number of other languages such as XML, SQL, and so on.

SAS Code Template

To create a wiki 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