13 | 📝 Note: Remember to link to a repository or upload a code snippet that reproduces the issue as an attachment (or a code block if it’s short) to this issue: https://help.github.com/en/articles/file-attachments-on-issues-and-pull-requests
14 |
15 |
16 | ```ejs
17 | <%# short code snippet that reproduces the issue goes here %>
18 | ```
19 |
20 | ## Expected result:
21 |
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "useTabs": true
3 | }
4 |
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | // A launch configuration that launches the extension inside a new window
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | {
6 | "version": "0.2.0",
7 | "configurations": [
8 | {
9 | "name": "Extension",
10 | "type": "extensionHost",
11 | "request": "launch",
12 | "runtimeExecutable": "${execPath}",
13 | "args": [
14 | "--extensionDevelopmentPath=${workspaceFolder}"
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/.vscodeignore:
--------------------------------------------------------------------------------
1 | # This is ignored when publishing extension
2 | .vscode/**
3 | .vscode-test/**
4 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # CHANGE LOG #
2 |
3 | ## 1.3.1 ##
4 |
5 | - Fix single lines with mutliple ejs tags.
6 | - Before: script would not capture inner tag causing " to be js not html.
7 |
8 | ```html
9 |
10 |
11 | ```
12 |
13 | ## 1.3.0 ##
14 |
15 | - Change ejs tag type so they stand out in html code.
16 | - Note: Will only show difference in some themes.
17 | - Add php blocking regex so valid php does not get triggered.
18 | - EJS tags inside of block comments will show as regular ejs tags now.
19 |
20 | ```html
21 | <% /* %> <-- Will be colored correctly
22 | Anything here will be commented out
23 | --> <% */ %>
24 | ```
25 |
26 | ## 1.2.1 ##
27 |
28 | - Add support for comment sections
29 | - Thanks to [@illz](https://github.com/illz) for verfication.
30 |
31 | ```html
32 | <% /* %>
33 | Anything here will be commented out
34 | <% */ %>
35 | ```
36 |
37 | ## 1.2.0 ##
38 |
39 | - Add Snippet support
40 | - Thanks to [@theranbrig](https://github.com/theranbrig) for initial snippet support.
41 | - If snippets are not working add the following to your setting.json file
42 |
43 | ```json
44 | "emmet.includeLanguages": {
45 | "ejs": "html",
46 | },
47 | ```
48 |
49 | ## 1.1.5 ##
50 |
51 | - Fixed Block comment on line with ejs control variable
52 | - Add support for ejs litteral `<%%`
53 |
54 | ## 1.1.4 ##
55 |
56 | - Add support for conditional loops
57 | - ReWrite to allow better html injection.
58 |
59 | ## 1.1.3 ##
60 |
61 | - Prevent running under PHP.
62 |
63 | ## 1.1.2 ##
64 |
65 | - Fixed support for JavaScript loops within EJS.
66 |
67 | ## 1.1.1 ##
68 |
69 | - Fixed support for JavaScript comments using ctrl+/ and ctrl+shift+/ at EJS boundaries.
70 |
71 | ## 1.1.0 ##
72 |
73 | - Added support for javascript comments using ctrl+/
74 |
75 |
76 | ## 1.0.0 ##
77 |
78 | ### Major UPDATE ###
79 |
80 | #### NOTICE: If you are not seeing any style, set your file associations for "*.ejs" to html ####
81 |
82 | ##### file association #####
83 |
84 | - Located in setting.json
85 | - Should look like the following
86 |
87 | ```json
88 | {
89 | "files.associations": {
90 | "*.ejs": "html"
91 | }
92 | }
93 | ```
94 |
95 | #### Updates ####
96 |
97 | - Major bump
98 | - Changing to an injected language.
99 | - Injecting into "text.html"
100 | - Setting configurationDefaults for file.association for ejs to html.
101 | - Rewrite of ejs.json
102 | - Created ejs-tag.
103 |
104 | ## Unpublished 0.5.1 ##
105 |
106 | - Fixed surrounding a selection with JavaScript template literals.
107 | - Fixed language configuration within EJS blocks inside JavaScript code blocks.
108 |
109 | ## 0.5.0 ##
110 |
111 | - Fixed single-line JS comments not being terminated correctly by an EJS closing tag. ([#28](https://github.com/Digitalbrainstem/ejs-grammar/issues/28))
112 | - Fixed broken EJS inside HTML `