Skip to content

Commit

Permalink
Add InES header snippets for latex files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Delafontaine committed May 10, 2022
1 parent c73c660 commit 3e1bb26
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ require("luasnip.loaders.from_vscode").lazy_load()

## Snippets

| Snippet | Purpose | Available in |
| ------- | -------------------- | ------------ |
| `inesh` | The InES file header | c, cpp, vhdl |
| Snippet | Purpose | Available in |
| ------- | -------------------- | ------------------- |
| `inesh` | The InES file header | c, cpp, vhdl, latex |

## Resources

Expand All @@ -71,3 +71,7 @@ Users appreciate release notes as you update your extension.
### 1.0.0

Initial release of zhaw-snippets

### 1.0.1

Added header snippet for latex
17 changes: 15 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"displayName": "ZHAW Snippets",
"description": "A collection of ZHAW related snippets",
"icon": "imgs/zhaw.png",
"version": "1.0.0",
"version": "1.0.1",
"publisher": "InES-HPMM",
"engines": {
"vscode": "^1.64.0"
},
"license": "MIT",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/InES-HPMM/zhaw-snippets"
Expand All @@ -34,10 +34,23 @@
"language": "cpp",
"path": "./snippets/cpp.json"
},
{
"language": "latex",
"path": "./snippets/latex.json"
},
{
"language": "tex",
"path": "./snippets/latex.json"
},
{
"language": "vhdl",
"path": "./snippets/vhdl.json"
}
]
},
"dependencies": {
"generator-code": "^1.6.10",
"vsce": "^2.7.0",
"yo": "^4.3.0"
}
}
17 changes: 17 additions & 0 deletions snippets/latex.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"zhawh": {
"prefix": "inesh",
"body": [
"% ------------------------------------------------------------------",
"% -- _____ ______ _____ --",
"% -- |_ _| | ____|/ ____| --",
"% -- | | _ __ | |__ | (___ Institute of Embedded Systems --",
"% -- | | | '_ \\| __| \\___ \\ Zurich University of --",
"% -- _| |_| | | | |____ ____) | Applied Sciences --",
"% -- |_____|_| |_|______|_____/ 8401 Winterthur, Switzerland --",
"% ------------------------------------------------------------------",
"$0"
],
"description": "The InES file header"
}
}

0 comments on commit 3e1bb26

Please sign in to comment.