+10
Completed

Syntax Highlighting: support for TypeScript language

Victor Sorokovikov 7 years ago updated by Valentin Moser 4 years ago 7

Add support for TypeScript language

GOOD, I'M SATISFIED
Satisfaction mark by Victor Sorokovikov 4 years ago
+1

Actually it would be great if syntax highlighting specs were saved in separate files, so that the user is even able to add custom highlighting specs. For example I'm currently developing an application which uses its own file format, and it would be great to enable syntax highlighting for these files in SmartGit.


For some text editors I was able to enable syntax highlighting by creating a GtkSourceView Language Definition. But in SmartGit it seems that there is no way to add such a definition(?).

That's correct, the used library does not support custom definitions.

Any progress on this? (ts and tsx files)

I'm no Typescript expert - what 20.2 is lacking with the Javascript language?

The extension TS doesn't supported at all. Maybe use the same highlighting for TS will be enough...

Completed

OK, SmartGit 20.2 RC 4 will use the file extension .ts for JavaScript/TypeScript language. If it contains some bug, please let us know at smartgit@syntevo.com.

+1

Is there a way to allow for Decorators in JS / TS files as well?

--

@Component({...}) //<-- that @ is marked as invalid, though it is not.

export class TestComponent {}

--