Quantcast
Channel: Squirrel Hacker » Computer programming
Viewing all articles
Browse latest Browse all 11

PHP Editor in your Browser

$
0
0

Put this into the url bar and hit enter:

data:text/html, <style type%3D"text%2Fcss">%23e{position%3Aabsolute%3Btop%3A0%3Bright%3A0%3Bbottom%3A0%3Bleft%3A0%3B}<%2Fstyle><div id%3D"e"><%2Fdiv><script src%3D"http%3A%2F%2Fd1n0x3qji82z53.cloudfront.net%2Fsrc-min-noconflict%2Face.js" type%3D"text%2Fjavascript" charset%3D"utf-8"><%2Fscript><script>var e%3Dace.edit("e")%3Be.setTheme("ace%2Ftheme%2Fmonokai")%3Be.getSession().setMode("ace%2Fmode%2Fphp")%3B<%2Fscript>

Not overly useful, but it is neat

You can get different syntax highlighting by changing the text near the end from this:

ace%2Fmode%2Fphp

to ruby:

ace%2Fmode%2Fruby

to python:

ace%2Fmode%2Fpython

You can’t really save it afterwards, the line numbers get prepended and there seems to be an x at the end of the file:

1
2
3
4
<?php
$test = 'test';
var_dump($test);
X

Modified from here:

https://gist.github.com/4666256

flattr this!


Viewing all articles
Browse latest Browse all 11

Trending Articles