A wordpress plugin to enable inclusion of both Swift and Objective-C code
JavaScript PHP CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
hipsterpress.css
hipsterpress.js
hipsterpress.php
readme.txt
screenshot-1.gif

README.md

hipsterpress

A WordPress plugin to easily switch between Objective-C and Swift code, inspired by NSHipster.com. To install, download this repository as a zip and upload to your WordPress installation.

Licence

License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html

Description

This is a plugin which attempts to mimic the behaviour of NSHipster by including Objective-C and Swift code, with syntax highlighting, and the ability to toggle between them. This plugin is only loaded when there is Objective-C and Swift code being displayed.

Installation

Download the zip file and add a new plugin in WordPress Objective-C and Swift code must directly follow each other, and they must each wrapped in <pre><code> tags. You must use the classes <code class="language-objectivec"> and <code class="language-swift"> Example:

<pre>
<code class="language-swift">
print("Hello, World!")
</code>
</pre>
<pre>
<code class="language-objectivec">
NSLog(@"Hello, World!");
</code>
</pre>

Frequently Asked Questions

Does it matter if I include Objective-C or Swift first?

No - either order is fine, as long as you are consistent.

Changelog

18-Nov-16 - initial commit

Upgrade Notice

No upgrades yet

Screenshots

plugin screenshot