https://bugs.kde.org/show_bug.cgi?id=428331

--- Comment #6 from Björn Fischer <bjoern.fisc...@dezem.de> ---
(In reply to Nibaldo G. from comment #4)
> In the "PHP/PHP" highlighter, the main context is:
> 
> <context name="start" lineEndContext="#stay" attribute="Normal Text">
>     <RegExpr context="phpsource" attribute="Keyword"
> String="&lt;\?(?:=|php)?" insensitive="true" />
>     <Detect2Chars attribute="Keyword" context="#pop" char="?" char1="&gt;" />
> </context>
> 
> 
> The script that generates "PHP (HTML)" inserts these rules in all contexts
> of the "HTML" highlighter.
> 
> Basically, in both "PHP/PHP" and "PHP (HTML)", to write PHP code you have to
> start with <? , <?= or <?php. The difference between "PHP (HTML)" and "PHP"
> is that outside the blocks <? ... ?>, the first one also highlights the HTML
> code.


Yes, my PHP files start with '<?php' and I do get some PHP style highlighting 
when I select 'PHP (HTML)' but for some reason I do not get Keyword
highlighting.
Some other highlighting, like for variables, does work though.
I attached a screenshot of how syntax highligting currently looks for me with
 Kate and 'PHP (HTML)' for you to have a reference.

I also double checked that I use a default highlighting text style.

> 
> I guess the following:
> You may be using a custom "PHP/PHP" highlighter and after updating KDE
> Frameworks you are using the major version, which is the built-in one. Check
> the directories "$HOME/.local/share/org.kde.syntax-highlighting/syntax" and
> "/usr/share/org.kde.syntax-highlighting/syntax" if there are any XML file
> for PHP. Also check the old directories:
> "$HOME/.local/share/katepart5/syntax" and "/usr/share/katepart5/syntax".

I checked the locations that you pointed out and the folders do not exist or
are empty.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to