Comments (4)
Maybe I could post the code using a regular form and let a iframe render it, but this would change how php-console works, because it renders the output in a DIV atm.
WDYT?
from php-console.
IMO that is sort of on the edge of what this was made for.. It's not really a quick attempt at something if you're generating PDFs :p The only thing I can think of is to have another button than "try" which would be "raw output" or something that does a simple browser POST and only outputs the result of the eval() call so you can do what you want and get it displayed as is in the browser, then hit back if needed to change the code.
from php-console.
You are right.. I won't develop such sort of code in the console, but sometimes I extract this type of code from an application and reduce it to a as simple as possible reproducible testcase.
I think it could work if I change the current code handling from AJAX to posting it to an iframe.. any objections?
from php-console.
I am not sure how it would work with large inputs to the iframe, but you
can try..
from php-console.
Related Issues (20)
- allow different charset HOT 5
- tag new release HOT 4
- non-printable chars HOT 5
- error while posting code HOT 2
- line numbers are in-accurate
- Resizable code editor HOT 1
- file handling HOT 2
- [suggestion] Add php syntax highlighting HOT 1
- How can I change the ACE editor Theme? HOT 1
- composer library support HOT 2
- layout HOT 2
- Fatal error: require(): Failed opening required 'vendor/autoload.php' HOT 1
- Required files not included or dependencies not listed HOT 1
- Error on install HOT 4
- Script ended unexpectedly. HOT 4
- Melody script fails HOT 3
- vendor folder missing HOT 1
- error while running script HOT 1
- Vendor missing HOT 3
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-console.