[Qt-creator] Syntax highlighting of PHP files (Hunger Tobias)

Orgad Shaneh orgads at gmail.com
Mon Jun 30 10:00:59 CEST 2014


On Mon, Jun 30, 2014 at 10:15 AM, Ziller Eike <Eike.Ziller at digia.com> wrote:

>
> On Jun 30, 2014, at 8:55 AM, Diego Iastrubni <diegoiast at gmail.com> wrote:
>
> > Actually -
> >
> > The kate syntax highlighter for PHP can include JS, CSS, and HTML code
> inside. There is a bug in GenericHighlighter (which I am seeing since
> QtCreator 2.2) which prevents the loading of the PHP highlighter.
>
> Hi, do you also happen to have a bug number for that?
> Br, Eike
>
> >
> >
> > On Mon, Jun 23, 2014 at 2:48 PM, Hermann Fieger <
> hermann.fieger at t-online.de> wrote:
> > 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.
> >
> > > 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.
> >
> > Best Regards,
> > Tobias
> >
> >
> >
> >
> >
> > At the moment i use QtCreator 3.0 on OpenSUSE 12.3. Syntax highlighting
> > works for me only with Project specific files (.cpp, .h).
> > I also tried to generic highlight PHP or HTML files, but always failed.
> >
> > In the environment setup i see many of registered MIME - types. Also
> > both configured paths ( HOME and katepart ) in the highlighting section
> > are full of XML files???
> >
> >
> >
> > Best regards,
> >
> > Hermann
> >
> > _______________________________________________
> > Qt-creator mailing list
> > Qt-creator at qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/qt-creator
> >
> > _______________________________________________
> > Qt-creator mailing list
> > Qt-creator at qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/qt-creator
>
> --
> Eike Ziller, Senior Software Engineer - Digia, Qt
>
> Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin
> Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
> Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht
> Charlottenburg, HRB 144331 B
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>

Proposed fix which works for me: https://codereview.qt-project.org/88651

- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20140630/484bb33e/attachment.html>


More information about the Qt-creator mailing list