This is an entirely false perception. There is no reason to not use your go-to editor (whichever it is) for any language - it's all text.
I know you can just use notepad++ and editors like that for all languages, but if you want to make your life a lot easier, you should look into IDEs designed for specific languages. eg, you can just write PHP code in NPP, but PHPStorm actually 'understands' your code and almost writes it for you. So PHPStorm would be a lot easier and more time efficient.