kconfig: NEW: syntax highlighting for Kconfig files in KDE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The text editors in KDE (Kate, KWrite, KDevelop, etc.) now support
highlighting Kconfig files. This will ship with KDE SC 4.14.1, older versions
back to KDE 4.4.0 can easily get it by running Kate and using the download
dialog at >Settings >Configure Kate... >Editor Component: Open/Save
>Modes & Filetypes >Download Highlighting Files...

Kate automatically applies this highlighting style to all files with names
that start with "Kconfig" unless some other pattern applies (e.g. *.c).

The highlighting should be pretty accurate with the usual formatting
scheme that most syntax highlighters of KDE apply and it comes with code
folding support and spell checking. However, it still lacks an indenter.
It also has no other fancy stuff like accurate auto-completion or jumping
to a declaration.

While the infrastructure of Kate Part primarily targets highlighting
syntactically valid files (not caring about invalid syntax), this highlighter
also underlines anything that will lead to a syntax error when running *conf.
Bad characters that do not lead up to a syntax error, but which will be
silently ignored, are red with a light red background.

This all comes at the cost of rather high cpu usage. You may notice when
loading large files, depending on your hardware. Also, automatic spell
checking on large files may slow things down. If you intend to open hundreds
of Kconfig files at once, expect it to take a long time.

Please report bugs either to me via email (subject start [kconfig.xml]) or
in the bug tracker of KDE at https://bugs.kde.org/

Regards
Martin Walch
-- 

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux