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

2014-06-30 Thread Orgad Shaneh
On Mon, Jun 30, 2014 at 10:15 AM, Ziller Eike  wrote:

>
> On Jun 30, 2014, at 8:55 AM, Diego Iastrubni  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.fie...@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@qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/qt-creator
> >
> > ___
> > Qt-creator mailing list
> > Qt-creator@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@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
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


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

2014-06-30 Thread Ziller Eike

On Jun 30, 2014, at 8:55 AM, Diego Iastrubni  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  
> 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@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
> 
> ___
> Qt-creator mailing list
> Qt-creator@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@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


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

2014-06-29 Thread Diego Iastrubni
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.


On Mon, Jun 23, 2014 at 2:48 PM, Hermann Fieger 
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@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Syntax highlighting of PHP files

2014-06-23 Thread Orgad Shaneh
On Tue, Jun 24, 2014 at 9:04 AM, David Schulz 
wrote:

> 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  path>/share/qtcreator/generic-highlighter.
>
> BR,
>
> David
>
>
Hi,

IIRC these definitions are only used on Windows.

- Orgad
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Syntax highlighting of PHP files

2014-06-23 Thread David Schulz
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 /share/qtcreator/generic-highlighter.

BR,

David


On 6/23/2014 11:21 PM, Jochen Becher wrote:
> Am Montag, den 23.06.2014, 08:33 + 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@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Syntax highlighting of PHP files

2014-06-23 Thread Jochen Becher
Am Montag, den 23.06.2014, 08:33 + 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@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


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

2014-06-23 Thread Hermann Fieger
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@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Syntax highlighting of PHP files

2014-06-23 Thread 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.

> 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
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] Syntax highlighting of PHP files

2014-06-20 Thread Jochen Becher
Hello

I would like to use QtCreator for some small PHP/HTML5/CSS/Javascript
projects I am currently working on.

Unfortunately, PHP files (e.g. a file "connect.php" which starts with
"") are not
highlighted at all.

I have downloaded all highlight definitions and verified that php.xml
exists in .config/QtProject/qtcreator/generic-highlighter. I also
verified that the php mime types are configured (3 mime types using
*.php). When I select "Save As" the file class "PHP" is selected.

Any idea what's going wrong? 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.

Regards, Jochen


___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator