Bug 434761

Summary: JSX code in javascript files does not get highlighted
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: Waqar Ahmed <waqar.17a>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: major CC: christoph, jonathan.poelen, walter.von.entferndt
Priority: NOR    
Version: 5.79.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.