Code block snippet using line numbers and highlight.js.
A Pen by demon.devin on CodePen.
| ;= VARIABLES | |
| ;= ################ | |
| ;Var $App | |
| ;= DEFINES | |
| ;= ################ | |
| ;=# App Specs | |
| !define APP `` | |
| !define APP64 `` |
| <?php | |
| $output = ""; | |
| $mod = $modx->getOption('mod',$scriptProperties,1); | |
| if ($mod === 1) { | |
| $str = $input; | |
| $int = $options; | |
| } else { |
| <?php | |
| $get = $modx->getOption('get',$scriptProperties,'id'); | |
| $resource = $modx->getObject('modResource', $modx->resource->get('id')); | |
| $parent = $modx->getObject('modResource', $resource->get('parent')); | |
| return $parent? $parent->get($get) : ''; |
| <?php | |
| /** | |
| * hashEmail | |
| * | |
| * Copyright 2016 by demon.devin <demon.devin@gmail.com> | |
| * Created on 10-07-2016 | |
| * | |
| * hashEmail is free software; you can redistribute it and/or modify it under the | |
| * terms of the GNU General Public License as published by the Free Software | |
| * Foundation; either version 2 of the License, or (at your option) any later |
| <?php | |
| /** | |
| * image64 | |
| * | |
| * Copyright 2017 by demon.devin <demon.devin@gmail.com> | |
| * Created on 1-17-2017 | |
| * | |
| * image64 is free software; you can redistribute it and/or modify it under the | |
| * terms of the GNU General Public License as published by the Free Software | |
| * Foundation; either version 2 of the License, or (at your option) any later |
| <?php | |
| /** | |
| * getDoctype snippet for getDoctype extra | |
| * | |
| * Copyright 2016 by demon.devin <demon.devin@gmail.com> | |
| * Created on 10-07-2016 | |
| * | |
| * getDoctype is free software; you can redistribute it and/or modify it under the | |
| * terms of the GNU General Public License as published by the Free Software | |
| * Foundation; either version 2 of the License, or (at your option) any later |
| <?php | |
| /** | |
| * lastModified | |
| * | |
| * Copyright 2016 by demon.devin <demon.devin@gmail.com> | |
| * Created on 10-07-2016 | |
| * | |
| * lastModified is free software; you can redistribute it and/or modify it under the | |
| * terms of the GNU General Public License as published by the Free Software | |
| * Foundation; either version 2 of the License, or (at your option) any later |
Code block snippet using line numbers and highlight.js.
A Pen by demon.devin on CodePen.
A typing effect for simulated live coding.. kind of.
By the way, that code isn't meant to actually work.. hence the errors. =)
A Pen by demon.devin on CodePen.