Bug 440823 - Missing CSV syntax highlighting support for Kate
Summary: Missing CSV syntax highlighting support for Kate
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (other bugs)
Version First Reported In: unspecified
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-10 09:23 UTC by Zdenek Sedlak
Modified: 2025-10-10 14:09 UTC (History)
3 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 Zdenek Sedlak 2021-08-10 09:23:37 UTC
SUMMARY
Syntax highlighting is missing when editing CSV files in Kate


STEPS TO REPRODUCE
1. Start Kate
2. Open CSV file

OBSERVED RESULT
A 'Normal' syntax highlighting (=plain text) is selected for CSV files. There is no CSV or Comma-delimited Text under Tools->Mode or Tools->Highlighting.

EXPECTED RESULT
When opening a CSV file, a CSV Mode should be selected.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 34/KDE Plasma
(available in About System)
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Christoph Cullmann 2022-08-23 21:10:09 UTC
Hi,

as long as nobody contributes a highlighting, nothing will happen.

We have good documentation on

https://invent.kde.org/frameworks/syntax-highlighting/-/blob/master/README.md

to get somebody started. Beside this, one can always reach out on the channels described on

https://kate-editor.org/support/
Comment 2 Christoph Cullmann 2022-11-11 18:49:02 UTC
Git commit 33ab607534e6fa371afc5037d2c36b8ee3ba172f by Christoph Cullmann, on behalf of jonathan poelen.
Committed on 11/11/2022 at 18:48.
Pushed by cullmann into branch 'master'.

Add syntax definition for CSV and TSV

Language name     | Separator     | Extension | Properties
------------------|---------------|-----------|-----------
 CSV              | , (comma)     |   .csv    | Ignored inside double-quoted fields
 TSV              | \t (TAB)      | .tsv .tab |
 CSV (semicolon)  | ; (semicolon) |           | Ignored inside double-quoted fields
 CSV (whitespace) | whitespace    |           | Consecutive whitespaces are merged
 CSV (pipe)       | \| (pipe)      |

A  +5    -0    autotests/folding/highlight.csv-pipe.fold
A  +6    -0    autotests/folding/highlight.csv-semicolon.fold
A  +4    -0    autotests/folding/highlight.csv-whitespace.fold
A  +6    -0    autotests/folding/highlight.csv.fold
A  +4    -0    autotests/folding/highlight.tsv.fold
A  +12   -0    autotests/html/highlight.csv-pipe.dark.html
A  +12   -0    autotests/html/highlight.csv-pipe.html
A  +13   -0    autotests/html/highlight.csv-semicolon.dark.html
A  +13   -0    autotests/html/highlight.csv-semicolon.html
A  +11   -0    autotests/html/highlight.csv-whitespace.dark.html
A  +11   -0    autotests/html/highlight.csv-whitespace.html
A  +13   -0    autotests/html/highlight.csv.dark.html
A  +13   -0    autotests/html/highlight.csv.html
A  +11   -0    autotests/html/highlight.tsv.dark.html
A  +11   -0    autotests/html/highlight.tsv.html
A  +6    -0    autotests/input/highlight.csv
A  +5    -0    autotests/input/highlight.csv-pipe
A  +1    -0    autotests/input/highlight.csv-pipe.syntax
A  +6    -0    autotests/input/highlight.csv-semicolon
A  +1    -0    autotests/input/highlight.csv-semicolon.syntax
A  +4    -0    autotests/input/highlight.csv-whitespace
A  +1    -0    autotests/input/highlight.csv-whitespace.syntax
A  +4    -0    autotests/input/highlight.tsv
A  +5    -0    autotests/reference/highlight.csv-pipe.ref
A  +6    -0    autotests/reference/highlight.csv-semicolon.ref
A  +4    -0    autotests/reference/highlight.csv-whitespace.ref
A  +6    -0    autotests/reference/highlight.csv.ref
A  +4    -0    autotests/reference/highlight.tsv.ref
A  +86   -0    data/syntax/csv-pipe.xml
A  +205  -0    data/syntax/csv-semicolon.xml
A  +114  -0    data/syntax/csv-whitespace.xml
A  +205  -0    data/syntax/csv.xml
A  +86   -0    data/syntax/tsv.xml

https://invent.kde.org/frameworks/syntax-highlighting/commit/33ab607534e6fa371afc5037d2c36b8ee3ba172f