Skip to content

Commit fcaded2

Browse files
authored
gts highlighting in readme (#125)
Need to use the full language name to enable GTS highlighting
1 parent 306d4b2 commit fcaded2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ in with the `@model` and `@controller` arguments appropriately set.
9696
The hello world example from above is similar to first creating the component
9797
in the usual global location in `app/components`:
9898

99-
```gjs
99+
```glimmer-js
100100
// app/components/hello-world.gjs
101101
<template>Hello world!</template>
102102
```
@@ -120,7 +120,7 @@ named exports, if you need to access them from elsewhere.
120120

121121
TypeScript and Glint is fully supported, just use the `.gts` extension instead.
122122

123-
```gts
123+
```glimmer-ts
124124
// app/templates/my-route.gts
125125
import RoutableComponentRoute from "ember-routable-component";
126126
@@ -139,7 +139,7 @@ export default class ModelWorksRoute extends Route<MyController>(
139139

140140
For Class-based components you can use the RoutableComponent:
141141

142-
```gts
142+
```glimmer-ts
143143
// app/templates/my-route.gts
144144
import RoutableComponentRoute, { RoutableComponent } from "ember-routable-component";
145145
import Component from "@glimmer/component";
@@ -158,7 +158,7 @@ export default RoutableComponentRoute(MyRouteComponent);
158158
```
159159

160160
It can also be used without any type
161-
```gts
161+
```glimmer-ts
162162
// app/templates/my-route.gts
163163
import RoutableComponentRoute, { RoutableComponent } from "ember-routable-component";
164164
import Component from "@glimmer/component";
@@ -175,7 +175,7 @@ export default RoutableComponentRoute(MyRouteComponent);
175175

176176
If you need custom functionality in routes:
177177

178-
```gts
178+
```glimmer-ts
179179
// app/templates/my-route.gts
180180
import RoutableComponentRoute from "ember-routable-component";
181181
import Component from "@glimmer/component";

0 commit comments

Comments
 (0)