Bug 434761 - JSX code in javascript files does not get highlighted
Summary: JSX code in javascript files does not get highlighted
Status: RESOLVED NOT A BUG
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (show other bugs)
Version: 5.79.0
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-22 11:39 UTC by Waqar Ahmed
Modified: 2022-08-23 21:01 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Waqar Ahmed 2021-03-22 11:39:52 UTC
SUMMARY

For "react-js" developers, it is common to have JSX code in javascript files mixed with javascript syntax. Currently, JSX doesn't get highlighted at all if the file has ".js" extension

OBSERVED RESULT

JSX code in javascript files doesn't get highlighted

EXPECTED RESULT

JSX code in javascript files gets highlighted
Comment 1 Jonathan Poelen 2021-03-25 02:35:19 UTC
This is configurable (for Kate) in Settings -> Configure Kate -> Open/Save -> Modes & Filetypes -> File extensions
Comment 2 Christoph Cullmann 2022-08-23 21:01:41 UTC
Yes, you can configure this, we can't just use the JSX highlighting for JS files per default.