Bug 345356 - There is no PHP(HTML) files own indentation
Summary: There is no PHP(HTML) files own indentation
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: indentation (other bugs)
Version First Reported In: 3.14.3
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2015-03-20 09:48 UTC by Rafael Linux User
Modified: 2018-10-27 03:55 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Linux User 2015-03-20 09:48:56 UTC
When an php(html) file contains PHP html - php code,  like in:
  <style type="text/css">  
    #menu >  ul > li[tipo-usuario~="<?php echo $_SESSION['admin']?>"] 
      {
	display:block;
      }
  </style>
There is no option to apply a correct indentation to code. The nearest way is to apply "XML" indentation, but the result is not the best, cause Kate adds one level more of indentation after he finds a php end tag ("?>").
 
Will you include a new indent for PHP(html) files?

Thank you

Reproducible: Always

Steps to Reproduce:
1.Edit a php(html) file
2.Select "XML" indent
3.Cut all code
4.Paste all code

Actual Results:  
Each "?>" tag increases one indent level the text below that tag position.

Expected Results:  
To take into account "<?php" and "?>" tags (obviously, is not XML, so is not a solution.
Comment 1 Buovjaga 2016-06-25 13:15:58 UTC
Could not reproduce. Please test with the latest version.

Arch Linux 64-bit
Kate 16.04.2
KDE Frameworks 5.23.0
Qt 5.7
xcb wm
Comment 2 Andrew Crouthamel 2018-09-26 22:15:25 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Andrew Crouthamel 2018-10-27 03:55:20 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!