imagecreatefrombmp not recognised
-
I am working on a PHP script for images, it seems imagecreatefrombmp is not highlighted in blue as a function.
imagecreatefromjpeg, imagecreatefromgif, imagecreatefrompng are highlighted in blue and work fine. Although imagecreatefrombmp is not highlighted in blue, it still works in my PHP script perfectly, just notepad++ doesn’t seem to recognise it as a function so it doesn’t turn it blue. Please, can this be fixed in future releases. Thanks -
Please, can this be fixed in future releases.
This Forum is not the feature request location, as explained in our FAQ. Even if you went to github and made a feature request, I am doubtful that anyone would bother to do a PR for a single keyword – but if you found a list of keywords that were missing, someone might be more likely to bother.
However, if it’s important to you to get it highlighted right away, go to Settings > Style Configurator > Language:
php
> Style:WORD
and addimagecreatefrombmp
to the User-defined keywords box, then Save & Close, and it will be highlighted for you on that computer, from then on. (The reason Notepad++ has the user-defined keywords option for most languages is that it is impossible for one volunteer developer to know all 80+ languages well enough to know if there’s a few missing keywords or not, and on any language, there maybe any number of lesser-used keywords that would only be important to a subset of users – so the user-defined keyword box is there for the users who care about those holes or want those extra keywords to add them themselves. PHP already has >9000 keywords in Notepad++, so it’s not surprising there is at least one, and likely more, missing – even if there were 100 missing that would only be 1% of the total, which isn’t hugely significant.) -
@PeterJones said in imagecreatefrombmp not recognised:
Please, can this be fixed in future releases.
This Forum is not the feature request location, as explained in our FAQ. Even if you went to github and made a feature request, I am doubtful that anyone would bother to do a PR for a single keyword – but if you found a list of keywords that were missing, someone might be more likely to bother.
However, if it’s important to you to get it highlighted right away, go to Settings > Style Configurator > Language:
php
> Style:WORD
and addimagecreatefrombmp
to the User-defined keywords box, then Save & Close, and it will be highlighted for you on that computer, from then on. (The reason Notepad++ has the user-defined keywords option for most languages is that it is impossible for one volunteer developer to know all 80+ languages well enough to know if there’s a few missing keywords or not, and on any language, there maybe any number of lesser-used keywords that would only be important to a subset of users – so the user-defined keyword box is there for the users who care about those holes or want those extra keywords to add them themselves. PHP already has >9000 keywords in Notepad++, so it’s not surprising there is at least one, and likely more, missing – even if there were 100 missing that would only be 1% of the total, which isn’t hugely significant.)thanks