Comments (3)
It's there now, but needs more coloring
from php-ref.
It does not works for me.
<?php
require './../../bootstrap/autoload.php';
~r('test');
die();
returns HTML even when executed on command-line:
<!DOCTYPE HTML><html><head><title>REF</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body><!-- ref#1 --><div><style> .ref{ font: normal normal 12px/18px Consolas, "Liberation Mono", Menlo, "Courier New", Courier, monospace; color: #333; } .ref i, .ref span, .ref a{ font-style: inherit; font-weight: inherit; margin: 0; padding: 0; text-align: left; display: inline; text-decoration: inherit; white-space: normal; background: none; } .ref > div{ display: none; } .ref [data-tip]{ cursor: help; } .ref a > [data-tip]{ cursor: pointer; } .ref a{ color: inherit; border-bottom: 1px dotted transparent; border-color: inherit; } #rTip{ display: none; position: absolute; z-index: 99999; font-size: 12px; white-space: pre; text-align: left; text-shadow: 0 -1px 0 #191919; line-height: 16px; background: #222; color: #888; border: 0; border-radius: 4px; opacity: 0.90; box-shadow:0 0 4px rgba(0,0,0, 0.25); -webkit-transition: opacity .25s, margin .25s; transition: opacity .25s, margin .25s; } #rTip.visible{ display: table; margin: 10px 0 0 15px; } #rTip.visible.fadingOut{ opacity: 0; margin: 20px 0 0 25px; } #rTip [data-cell]{ padding: 2px 7px; } #rTip [data-title], #rTip [data-desc]{ padding: 8px; display: block; color: #ccc; } #rTip [data-desc]{ padding-top: 0px; color: #777; } #rTip [data-cell][data-varType]{ padding: 10px; background: #333; box-shadow: inset -1px 0 0 #444; border-right:1px solid #111; border-top-left-radius: 4px; border-bottom-left-radius: 4px; } #rTip [data-cell][data-sub]{ padding: 8px 10px 10px 10px; background: #333; box-shadow: inset 0 1px 0 #444; border-top:1px solid #111; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } #rTip [data-table] [data-cell]:first-child{ font: bold 11px Helvetica, Arial; color: #888; } #rTip [data-table] [data-cell]:nth-child(2){ color: #edd078; } .ref span{ white-space: pre; display: inline; } .ref i{ white-space: pre; color: #aaa; } .ref [data-input]{ margin: 2px 0 0; padding: 2px 7px 3px 4px; display: block; color: #ccc; background-color: #333; background-image: -webkit-linear-gradient(top, #444, #333); background-image: linear-gradient(top, #444, #333); border-radius: 4px 4px 0 0; border-bottom: 1px solid #fff; } .ref [data-backtrace]{ float: right; } .ref [data-output]{ background: #f9f9f9; border: 1px solid #eee; border-top: 0; border-radius: 0 0 4px 4px; box-shadow: inset 0px 4px 4px #f3f3f3, inset 0px -8px 8px #fff; padding: 2px 5px; margin: 0 0 4px; text-shadow: 0 1px 0 #fff; display: block; } .ref [data-toggle]{ display: inline-block; vertical-align: -3px; margin-left: 2px; width: 0px; height: 0px; border-style: solid; border-width: 7px 0 7px 10px; border-color: transparent transparent transparent #CC0033; cursor: pointer; -webkit-transition: all ease-in .15s; transition: all ease-in .15s; } .ref [data-toggle][data-exp]{ -webkit-transform: rotate(90deg); -ms-transform: rotate(90deg); transform: rotate(90deg); } .ref [data-group]{ display: none; } .ref [data-toggle][data-exp] ~ [data-group]{ display: block; } .ref [data-table]{ display: table; } .ref [data-tHead]{ font: bold 11px Helvetica, Arial; color: #bcbcbc; text-transform: lowercase; margin: 12px 0 2px 10px; display: block; } .ref [data-row]{ display: table-row; } .ref [data-output] [data-row]:nth-child(odd){background: #f4f4f4;} .ref [data-output] [data-row]:nth-child(even){background: #f9f9f9;} .ref [data-cell]{ display: table-cell; width: auto; vertical-align: top; padding: 1px 0 1px 10px; } .ref [data-output] [data-table], .ref [data-output] [data-cell]:last-child{ width: 100%; } .ref [data-true], .ref [data-false], .ref [data-null], .ref [data-unknown], .ref [data-resource], .ref [data-match]{ font: bold 11px Helvetica, Arial; color: #fff; padding: 1px 3px; text-transform: lowercase; text-shadow: none; border-radius: 2px; margin-right: 5px; background-color: #eee; background-image: -webkit-linear-gradient(top, rgba(255,255,255,0.1) 40%,rgba(0,0,0,0.1) 100%); background-image: linear-gradient(to bottom, rgba(255,255,255,0.1) 40%,rgba(0,0,0,0.1) 100%); } .ref [data-match]{ background-color: #d78035; } .ref [data-true]{ background-color: #339900; } .ref [data-false]{ background-color: #CC0033; color: #fff; } .ref [data-null], .ref [data-unknown]{ background-color: #eee; color: #999; text-shadow: inherit; } .ref [data-resource]{ background-color: #0057ae; } .ref [data-resourceProp]{ font: bold 11px Helvetica, Arial; color: #999; } .ref [data-integer], .ref [data-double]{ color: #0099CC; } .ref [data-string]{ background: #e8f0e1; color: #669933; padding: 3px 1px; white-space: -moz-pre-wrap; white-space: -hp-pre-wrap; white-space: -o-pre-wrap; white-space: -pre-wrap; white-space: pre-wrap; white-space: pre-line; word-wrap: break-word; word-break: break-all; } .ref [data-string][data-special]{ background: none; padding: 0; } .ref [data-string][data-special] i{ background: #faf3dc; color: #d78035; } .ref [data-array], .ref [data-array] ~ i, .ref [data-object], .ref [data-object] ~ i, .ref [data-resource] ~ i{ color:#CC0033; } .ref [data-method]{ font-weight: bold; color: #0057ae; } .ref [data-const][data-inherited], .ref [data-prop][data-inherited]{ color: #999; } .ref [data-prop][data-private], .ref [data-method][data-private]{ color: #CC0033; } .ref [data-method][data-inherited]{ font-weight: bold; color: #6da5de; } .ref [data-param]{ font-weight: normal; color: #333; } .ref [data-param][data-optional]{ font-style: italic; font-weight: normal; color: #aaa; } .ref [data-gLabel]{ font: bold 11px Helvetica, Arial; padding: 0 3px; color: #333; } .ref [data-mod]{ font: bold 11px Helvetica, Arial; text-shadow: none; color: #fff; } .ref [data-input] [data-mod]{ color: #444; } .ref [data-mod] span{ display: inline-block; margin: 0 2px; width: 14px; height: 14px; text-align: center; border-radius: 30px; line-height: 15px; } .ref [data-mod-interface], .ref [data-mod-abstract]{ background: #baed78; } .ref [data-mod-protected]{ background: #edd078; } .ref [data-mod-private]{ background: #eea8b9; } .ref [data-mod-iterateable]{ background: #d5dea5; } .ref [data-mod-cloneable]{ background: #bdd7d1; } .ref [data-mod-final]{ background: #78bded; } .ref [data-regex]{ font-weight: bold; text-shadow: none; padding: 1px 0; background: #e6e6e6; word-wrap: break-word; } .ref [data-regex-chr]{ background: #ffc080; color: #694c07; } .ref [data-regex-chr-meta]{background: #e0a060;} .ref [data-regex-chr-range]{background: #ffcf9b;} .ref [data-regex-meta]{ background: #80c0ff; color: #105f8c; } .ref [data-regex-g1]{ background: #00c000; color: #fff; } .ref [data-regex-g2]{ background: #c3e86c; color: #648c1c; } .ref [data-regex-g3]{ background: #008000; color: #fff; } .ref [data-regex-g4]{ background: #6dcb99; color: #fff; } .ref [data-regex-g5]{ background: #00ff00; color: #2c8e24; } .ref [data-error]{ background: #CC0033; color: #fff; border-radius: 0 0 4px 4px; padding: 2px 5px; margin: 0 0 4px; display: block; } </style> <script> window.addEventListener('load', function(){ var tip = document.createElement('div'), refs = document.querySelectorAll('.ref'); for(var i = 0, m = refs.length; i < m; i++){ var kbds = refs[i].querySelectorAll('[data-toggle]'), tippable = refs[i].querySelectorAll('[data-tip]'), tips = refs[i].querySelectorAll('div'); for(var j = 0, n = kbds.length; j < n; j++){ if(kbds[j].parentNode !== refs[i]) kbds[j].onclick = function(e){ ('exp' in this.dataset) ? delete this.dataset.exp : this.dataset.exp = 1; } } [].filter.call(tips, function(node){ return node.parentNode == refs[i]; }); for(var j = 0, n = tippable.length; j < n; j++){ tippable[j].tipRef = tips[tippable[j].dataset.tip]; tippable[j].onmouseover = function(){ tip.className = 'ref visible'; tip.innerHTML = this.tipRef.innerHTML; window.clearTimeout(tip.fadeOut); }; tippable[j].onmouseout = function(){ tip.className = 'ref visible fadingOut'; tip.fadeOut = window.setTimeout(function(){ tip.innerHTML = ''; tip.className = ''; }, 250); }; } refs[i].onmousemove = function(e){ if(tip.className.indexOf('visible') < 0) return; tip.style.top = ((document.documentElement.clientHeight - e.clientY) < tip.offsetHeight + 20 ? Math.max(e.pageY - tip.offsetHeight, 0) : e.pageY) + 'px'; tip.style.left = ((document.documentElement.clientWidth - e.clientX) < tip.offsetWidth + 20 ? Math.max(e.pageX - tip.offsetWidth, 0) : e.pageX) + 'px'; }; } tip.id = 'rTip'; document.body.appendChild(tip); }); window.addEventListener('keydown', function(e){ var tt = e.target.tagName.toLowerCase(); if((e.keyCode != 88) || (tt == 'input') || (tt == 'textarea') || (tt == 'select')) return; var kbds = document.querySelectorAll('.ref [data-toggle]'), partlyExp = document.querySelectorAll('.ref [data-toggle][data-exp]').length !== kbds.length, _ref = document.querySelectorAll('.ref'); e.preventDefault(); if( e.ctrlKey && e.keyCode == 88 ){ for(var i = 0, m = _ref.length; i < m; i++){ if( _ref[i].style.display == 'none' ){ _ref[i].style.display = 'block'; }else{ _ref[i].style.display = 'none'; } } }else{ for(var i = 0, m = kbds.length; i < m; i++) partlyExp ? (kbds[i].dataset.exp = 1) : (delete kbds[i].dataset.exp); } }); </script><div class="ref"><span data-input><i>> </i><span data-expTxt>'test'</span><span data-backtrace>D:\www\www\mehr2\public\lab\ll.php:3</span></span><span data-output><span data-string data-tip="0">test</span></span><div><span data-row><span data-cell><span data-title>string(4)</span></span></span></div></div></div><!-- /ref#1 --></body></html>
from php-ref.
It looks like you are still running the previous version. I've created a new release, so you should be able to update with composer now
from php-ref.
Related Issues (20)
- Why the rt() function set the http header ?
- emulate kintLite
- Apache crash with Laravel model HOT 5
- Better regex matching of date & datetime. HOT 1
- Some changes please
- Problem use it in error handler HOT 1
- __debugInfo support HOT 1
- Json output for API ?
- Error: Call to undefined function token_get_all() HOT 1
- count(): Parameter must be an array or an object that implements Countable HOT 5
- "data-exptxt" empty when used inside a loop HOT 1
- Exclude HTML HOT 1
- r($object), throw a ReflectionException HOT 1
- php-ref folder delets on push to origin HOT 7
- ReflectionType::__toString() is deprecated HOT 3
- Initial @ breaks output of following @s (repro inside)
- Hiding path to PHP file
- Mark as abandoned? HOT 4
- Bugfix for Array (Simple)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-ref.