mirror of
https://github.com/denoland/deno.git
synced 2024-12-18 21:35:31 -05:00
c55e936be0
This commit adds support for .sql files in "deno fmt" subcommand. Closes: https://github.com/denoland/deno/issues/25024 --------- Signed-off-by: m4rc3l05 <15786310+M4RC3L05@users.noreply.github.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
73 lines
661 B
Markdown
73 lines
661 B
Markdown
# Hello Markdown
|
|
|
|
```js
|
|
console.log("Hello World");
|
|
```
|
|
|
|
```javascript
|
|
console.log("Hello World2");
|
|
```
|
|
|
|
```ts
|
|
function hello(name: string) {
|
|
console.log(name);
|
|
}
|
|
|
|
hello("alice");
|
|
```
|
|
|
|
```typescript
|
|
function foo(): number {
|
|
return 2;
|
|
}
|
|
```
|
|
|
|
```jsonc
|
|
{
|
|
// Comment in JSON
|
|
"key": "value",
|
|
"key2": "value2"
|
|
}
|
|
```
|
|
|
|
```json
|
|
{
|
|
"numbers": ["1", "2"]
|
|
}
|
|
```
|
|
|
|
```yaml
|
|
- item1
|
|
- item2
|
|
```
|
|
|
|
```css
|
|
#app > .btn {
|
|
color: #000;
|
|
}
|
|
```
|
|
|
|
```html
|
|
<div class="container">content</div>
|
|
```
|
|
|
|
```svelte
|
|
<script lang="ts">
|
|
let a: number;
|
|
</script>
|
|
```
|
|
|
|
```sql
|
|
SELECT
|
|
*,
|
|
biz,
|
|
buz
|
|
FROM
|
|
baz;
|
|
```
|
|
|
|
```sql
|
|
-- deno-fmt-ignore-file
|
|
seLect * , biz, buz
|
|
from baz;
|
|
```
|