I know BSS isn’t an IDE but since half the Web is PHP, I’ve created my mini environment by installing PHP CLI on Ubuntu, added the script above to create PHP files from the project output and now with a few more lines of code in a Bash shell script, I can now create very basic individual WordPress (or any PHP) pages from the different blocks of markup by copying the block and running the script to create and give the file created a name.
Eg, if I right click on the block and “Copy as HTML”, I run the script which asks for a name; In this case I enter “header” hit enter and the script copies the header text to a file named header.php and opens it in my editor.
So say I’m creating home.php, I click the block that contains what will fall between the WP header and footer, say , I copy as HTML and I double click my file.sh. The Konsole opens, I type home:
File opens in Kwrite (or the editor you choose to add to the script) and voila! edit away. Delete what’s to be deleted and add WP loops.
markup and text and other stuff is in here
Of course, if you’re not working with WP, just edit the script to use
<?php include 'header.php';?>
<?php include 'footer.php';?>
or whatever your page names are. It’s so easy, even I could do it. It’s seven lines of code including the shebang.
PS: On Ubuntu, Xclip is what keeps the copied block in memory for access by the script; about 53kb of code if it’s not installed by default.