Skip to content

Commit c34b31f

Browse files
authored
Merge pull request #30 from cvharris/support-md
Adds *.md support
2 parents 07a7415 + 0f7891a commit c34b31f

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Missing CSS support for HTML documents.
2222
- handlebars
2323
- php
2424
- twig
25+
- md
2526

2627
## Remote Style Sheets
2728

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-html-css",
33
"displayName": "HTML CSS Support",
44
"description": "CSS support for HTML documents",
5-
"version": "0.1.4",
5+
"version": "0.1.5",
66
"publisher": "ecmel",
77
"license": "MIT",
88
"homepage": "https://github.com/ecmel/vscode-html-css",
@@ -47,7 +47,8 @@
4747
"onLanguage:jade",
4848
"onLanguage:handlebars",
4949
"onLanguage:php",
50-
"onLanguage:twig"
50+
"onLanguage:twig",
51+
"onLanguage:md"
5152
],
5253
"main": "./out/src/extension",
5354
"scripts": {

src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ export function activate(context: vsc.ExtensionContext) {
182182
'jade',
183183
'handlebars',
184184
'php',
185-
'twig'
185+
'twig',
186+
'md'
186187
], classServer));
187188

188189
let wp = /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\.\"\,\<\>\/\?\s]+)/g;
@@ -196,6 +197,7 @@ export function activate(context: vsc.ExtensionContext) {
196197
context.subscriptions.push(vsc.languages.setLanguageConfiguration('handlebars', { wordPattern: wp }));
197198
context.subscriptions.push(vsc.languages.setLanguageConfiguration('php', { wordPattern: wp }));
198199
context.subscriptions.push(vsc.languages.setLanguageConfiguration('twig', { wordPattern: wp }));
200+
context.subscriptions.push(vsc.languages.setLanguageConfiguration('md', { wordPattern: wp }));
199201

200202
context.subscriptions.push(vsc.workspace.onDidChangeConfiguration((e) => parseRemoteConfig()));
201203
}

0 commit comments

Comments
 (0)