This simple WordPress plugin adds support for the Swift Programming Language to the SyntaxHighlighter Evolved plugin.
Requires SyntaxHighlighter Evolved plugin to be installed first.
I admit that I may have missed some Swift keywords or something, so if you find it, please tell me about it. Thank you.
Example code
@objc class ExampleClass { let text: String var num = 0 init(text: String) { self.text = text println("Text = " + text) } func incrementNum() { num++ } }
Installation Instructions
- Upload
syntaxhighlighter-swift
to the/wp-content/plugins/
directory. - Activate the plugin through the
Plugins
menu in WordPress.
How to use
Simply wrap your code in tags or
. You may want to take a look at more tags that you can use on SyntaxHighlighter Evolved settings page.
Download now from here.