Typescript Support in Scratch Text Editor

Registered by JoshuaStrobl

As it stands now, out of the box, Scratch supports a multitude of programming languages, such as PHP, Javascript, Vala, etc. With the emergence of Typescript (which I use on a daily basis), I feel Scratch should support code highlighting for Typescript.

Typescript: http://typescriptlang.org

---

How exactly is existing code syntax highlighting implemented in to Scratch and what would the process most likely be in adding additional supported programming languages?

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Discussion
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Scratch use GtkSourceView widget for display code. This widget is used also by Gedit and Anjuta.
If you want add support for new language, you should check this page:
 * https://wiki.gnome.org/Gedit/NewLanguage
 * https://developer.gnome.org/gtksourceview/stable/lang-tutorial.html

You need to create and fill: typescript.lang, which is a XML file. And paste it to:
~/.local/share/gtksourceview-3.0/language-specs/
- daniel-m-kur

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.