Development Projects

Below are a list of some development projects I’m working on…

PCMLTOOLS

PCMLTOOLS is an open source project to make working with JT400 PCML easier. It’s hosted on GitHub at https://github.com/fallingrock/pcmltools.

Simple KeyCaps

This is a very small WordPress plug-in that lets you style text as keyboard caps. For example, if you wanted to show the ALT key as ALT.

Rather than host it on GitHub (although I may in the future), here’s the source code…

<?php
/**
 * Plugin Name: Simple Keycaps
 * Plugin URI: https://www.geekyramblings.net/development-projects/
 * Description: Short code to add keycap styling
 * Version: 1.0
 * Author: David Gibbs
 * Author URI: https://www.geekyramblings.net
 **/

function keycap_shortcode( $atts, $content = null ) {
	return '<span class="keycap">' . $content . '</span>';
}

function keycap_add_css() {
?>
<!-- add style for key caps plugin -->
<style>
span.keycap {
  border:1px solid gray;
  font-size:1.2em; 
  box-shadow:1px 0 1px 0 #eee, 0 2px 0 2px #ccc, 0 2px 0 3px #444;
  -webkit-border-radius:3px; 
  -moz-border-radius:3px;
  border-radius:3px;
  margin:2px 3px;
  padding:1px 5px;
}
</style>
<?php
}

add_action('wp_head', 'keycap_add_css');
add_shortcode( 'keycap', 'keycap_shortcode' );Code language: HTML, XML (xml)