Closed Bug 1555751 Opened 6 years ago Closed 6 years ago

Support Kotlin syntax highlighting in file preview

Categories

(DevTools :: Debugger, enhancement, P5)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Harald, Unassigned)

Details

(Keywords: good-first-bug)

Attachments

(1 file)

codemirror has a mode for it so we can easily add this
http://lig-coin.imag.fr/COIN3D/ThirdParty/codemirror-4.6/mode/kotlin/index.html

Keywords: good-first-bug
Priority: -- → P5

Hello,

I would like to take a stab at this.

Go for it

Hi I would like to start working on it but would need some help as to where to start from

Hey Jason. Seems like we already have kotlin mode imported in clike.js at
https://searchfox.org/mozilla-central/source/devtools/client/shared/sourceeditor/codemirror/mode/clike/clike.js#596

Also the handling of kotlin file type is handled in getMode method at following line
https://searchfox.org/mozilla-central/source/devtools/client/debugger/src/utils/source.js#367

Can you help me if there is any config file which I am missing out that needs to be modified in order to source map kotlin file?

Flags: needinfo?(jlaster)

Hmm, those things exist, but we're still not seeing the syntax highlighting?

Flags: needinfo?(jlaster)

Syntax highlighting is present but is not as concise as it would be for javascript. I have attached the screenshot of the same.

That is likely a codemirror issue. I don't know if there is anything we can do from our end.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: