I am currently using notepad ++ on windows or gedit on ubuntu. Both of them do a great job with code highlighting and hint, etc. But both of them suffer from a huge flaw. I have yet to find a code editor that can handle this concept:
<?php <a onclick="alert('hay, some javascript in here now!')"> This link is HTML?!</a> <?PHP echo("NOW we have some php as well!"); ?>
At the moment, I just need to agree on one language. I want something that might think that the default text is used as HTML, but pay attention when sections are PHP. I want these sections of PHP to contain their own code that hints and highlights. Even more, say, in "if else", I exit PHP, write the HTML code back to PHP, I want it to work, as the brackets ('{' and '}') should match and tell me if I missed one. I want embedded JavaScript sections to be matched as such. I want all these languages ββto be checked for syntax!
Heck, I want a tool that understands several languages ββat once!
Extra
It should be noted that I do not want to pay for such a luxury: P
My files are saved as '.php'.
Notepad ++ may work that I use PHP, but when I exit php and do some HTML and / or some JavaScript.
source share