Bug 488404

Summary: Add HTML/CSS Validation
Product: [Applications] kate Reporter: korwin <korwin+kde.org>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: christoph, lassi.vaatamoinen, waqar.17a
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: htmltidy

Description korwin 2024-06-12 09:09:13 UTC
§ SUMMARY

"The process of checking that the code is in compliance with the standards and recommendations set by the World Wide Web Consortium (W3C) for the web".

Implementation example:

"When opening a document in Code view, %appname% automatically validates that the document is not using any tags, attributes, CSS properties, or CSS values that are not available in the target browsers that the user selected. %appname% underlines errors (...)".

About Code validation — https://helpx.adobe.com/dreamweaver/extend/code-validation.html

§ STEPS TO REPRODUCE

1. Right-click on any panel and select "Configure Toolbars"
2. Enter the word "validat" or "linting" in the Filter field of the Available actions block

§ OBSERVED RESULT

The list of suggested functions is empty.

§ EXPECTED RESULT

I expect Kate to include HTML/CSS code checking at the level of applications such as Dreamweaver, oXygenXML Editor, Bluefish, SeaMonkey Composer, Codelobster, CoffeeCup HTML Editor, HTML-Kit, TOWeb, Arachnophilia, EZGenerator or Bootstrap Studio.

§ SOFTWARE/OS VERSIONS

Windows: 10.0.19045.4474
KDE Frameworks Version: 6.3.0
Qt Version: 6.71 (built against 6.7.1)
Comment 1 Waqar Ahmed 2024-08-02 07:33:08 UTC
We have htmltidy integeration in the project plugin. See the screenshot.

Alternatively use a language server for html or css. It will provide you with a lot of functionality in addition to validation.
Comment 2 Waqar Ahmed 2024-08-02 07:33:42 UTC
Created attachment 172203 [details]
htmltidy
Comment 3 Waqar Ahmed 2024-08-02 07:34:58 UTC
See https://www.npmjs.com/package/@bmewburn/vscode-html-languageserver

and our LSP plugin which integerates with the server