[Qt-creator] Syntax highlighting of PHP files

David Schulz david.schulz at digia.com
Tue Jun 24 08:04:49 CEST 2014


Hi,

I resubmitted a change that was lost during a feature freeze 
(https://codereview.qt-project.org/#/c/88138/)
You can check if the new syntax file works by simply replacing your 
html.xml syntax file with the new web.xml from the patch under <creator 
path>/share/qtcreator/generic-highlighter.

BR,

David


On 6/23/2014 11:21 PM, Jochen Becher wrote:
> Am Montag, den 23.06.2014, 08:33 +0000 schrieb Hunger Tobias:
>> On 20.06.2014 20:10, Jochen Becher wrote:
>>   > I would like to use QtCreator for some small PHP/HTML5/CSS/Javascript
>>   > projects I am currently working on.
>>
>> Creator might not be the best tool for this job.
> Surely not the best but I don't want to use another IDE just because I
> want to edit some php files and jQuery code. I already started to create
> some file wizards for Web projects, PHP and HTML files.
>
>>> Any idea what's going wrong?
>> Unfortunately I do not, but then the editors are not really my area of
>> expertise.
>>
>>> I do not have "Kate" installed on my system
>>> but "gedit" from Gnome 3. It highlights these files correctly but I am
>>> not sure if gedit also uses the Kate definitions.
>> AFAIK gedit is using a completely different highlighter. So that gedit
>> works is not really a sign that creator should also work.
>>
>> Creator will most likely also have trouble with PHP embedded in HTML.
>> AFAIK (not my area of expertise, see above) Creator has one generic
>> highlighter, so you will get either PHP or HTML.
> I found this http://comments.gmane.org/gmane.comp.lib.qt.general/42686
>
> If I understand it right QtCreator should already be able to handle
> embedded highlighting.
>
> But for now I would be happy to know why PHP highlighting isn't working.
> Embedded HTML is the next step.
>
> Regards, Jochen
>
>> Best Regards,
>> Tobias
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator




More information about the Qt-creator mailing list