Edit Final Html source
Permalink
i'd love a block to edit the final html source- so the phps all run and displayed, and you can just edit the html like a static .html file. I'd be willing to pay $100+ for such a block. preferably it would
retain changes if the block hasn't been changed in edit mode
have syntax highlighting
allow you to input all web language types that would be executed on page load
have a preview mode
I'd have no idea how to start on making such a block, but I'm sure others would be able to. I can see using a block like this when you want to make some simple changes but don't want to dive into the php to make a small change that would be complicated in the php, or have different styling for pages that had the same page type. preferably it would be another button in the exit edit mode dialogue, so that you could choose to bypass it if you just wanted to publish.
retain changes if the block hasn't been changed in edit mode
have syntax highlighting
allow you to input all web language types that would be executed on page load
have a preview mode
I'd have no idea how to start on making such a block, but I'm sure others would be able to. I can see using a block like this when you want to make some simple changes but don't want to dive into the php to make a small change that would be complicated in the php, or have different styling for pages that had the same page type. preferably it would be another button in the exit edit mode dialogue, so that you could choose to bypass it if you just wanted to publish.
yeah, thats the jist of it. I really would have no idea how to do something like this but there are a lot of times when I don't want to wade through a ton of php just to apply a class to one element, and thinking that this block would help with that.
This is not possible. Maybe you could make every single block on your page a "php" block, but for many obvious reasons that's a terrible idea. Wading through php code is the least of all evils -- perhaps it might be better to invest some time and effort into improving your tools and workflow to make it easier to find / open / edit / update those php files?
To make sure I understand you, say you had a block with PHP in it that printed out a list of links.
php_function_print_links();
But when you go to edit it, you wouldn't see the code, but the actual end result, and be able to edit that? And it wouldn't just be a visual change, it would actually update those links (wherever they may be, database, file, etc..)
Is that the jist of what you're thinking?
- Josh