Ohio State is in the process of revising websites and program materials to accurately reflect compliance with the law. While this work occurs, language referencing protected class status or other activities prohibited by Ohio Senate Bill 1 may still appear in some places. However, all programs and activities are being administered in compliance with federal and state law.

 Teaching and Learning Resource Center

SyntaxHighlighter Evolved

Easily display code on your U.OSU site using SyntaxHighlighter Evolved. Using shortcodes, you can highlight lines, add autolinks and more.

Below is an example of how your code would appear on the U.OSU site:

Image
Highlighted line within code output example

Using shortcodes to display code

In order to display your code, use the Text tab of the Edit Post or Edit Page.

Add shortcode parameters to display your code (e.g. [php highlight="12"]your code goes here[/php]).

Image
PHP tags within code output example

 

For more available shortcodes, navigate to the bottom of the SyntaxHighlighter Settings page on your U.OSU site (Settings > SyntaxHighlighter).