Bug 453869 - No syntax highlighting
Summary: No syntax highlighting
Status: RESOLVED LATER
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: 21.12.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-16 07:36 UTC by abin
Modified: 2022-05-23 17:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abin 2022-05-16 07:36:29 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Create a new html file 123.html
2. type <head>
3. No autocompletion of words, no auto closure for brackets and no indentation

OBSERVED RESULT
No autocompletion of words, no auto closure for brackets and no indentation

EXPECTED RESULT
Autocompletion of words, auto brackets closure and the entries after a tag like <div> should be properly indented

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.24.5
(available in About System)
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Lothar 2022-05-19 15:31:14 UTC
Hm, just tried as described

- Ctrl-N
- Ctrl-S (saved as /tmp/123.html)
- typed <head> (shown in bold)

KDE Frameworks 
Version 5.94.0
Comment 2 abin 2022-05-22 07:43:17 UTC
After update syntax highlighting works fine, but indentation and auto complete is not working as expected. Detailed below

Set indentation to 'Normal' from settings
1. Create an new file and save as 123.html
2. type <html> and press enter.
3. As per configuration when '<' is typed the closing brackets should be auto closed with '>' but kwrite is not closing the brackets, but {,( ,[ works fine. As the file is an html file <html> tag should be auto completed with </html>,but not working in kwrite, infact kwrite is not closing any of the html keywords. Regarding indentation after  <html> the next line should be properly indented (usually with tab) but instead kwrite begins from the very start of next line (The indentation works fine if we select XML from the indentation in KWrite settings)
Comment 3 Lothar 2022-05-22 09:09:08 UTC
> As per configuration when '<' is typed the closing brackets should be auto closed with '>'

These angle brackets are not handled as  the other ones. That would cause to much hassle in most other cases, e.g. working on code like  "if foo < bar". IIRC I had made a patch on phabricator some time ago which was rejected (must agree right decision).

To the other mentioned issues I can't say much. But there is a plugin XML Completion. With that you can close open tags by Ctrl+<

For the rest of your issues I suggest you close this one and open a new, or change the topic of this report :-)