Codeflask for WordPress

This is a plugin for WordPress, it’s a simple shortcode implementation of Codeflask.

Codeflask is a micro code-editor. It’s pretty awesome.


This is a plugin for WordPress,  it’s a simple shortcode implementation of Codeflask. Credit to @kazzkiq for making Codeflask.

Codeflask is a micro code-editor.  It’s pretty awesome.  You can see it in action below.  start writing code, play around or rewrite it, warning it doesn’t save on reload.

 

c++ example

// ‘Hello World!’ program

#include

int main()
{
std::cout << “Hello World!” << std::endl;
return 0;
}

css example

.CodeFlask{
position:relative;
overflow:hidden;
}

.CodeFlask__textarea,
.CodeFlask__pre{
box-sizing:border-box;
position:absolute;
top:0;
left:0;
width:100%;
padding:1rem !important;
border:none;
font-family: Consolas, Monaco, ‘Andale Mono’, ‘Ubuntu Mono’, monospace;
font-size:13px;
background:transparent;
white-space:pre-wrap;
line-height:1.5em;
word-wrap: break-word;
}

php example

<?php

/**
* This is a php example
*
*/

function handle_shortcode($atts, $content = null) {

//php code!

}

 

?>

 

 

Available on the WordPress plugin directory

Download