Skip to content

Commit 137603c

Browse files
🚀 Initial commit
0 parents  commit 137603c

17 files changed

+806
-0
lines changed

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Top-most EditorConfig file
2+
root = true
3+
4+
# Global config
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 2
9+
indent_style = space
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
# Python
14+
[*.{py,pyi,toml}]
15+
indent_size = 4
16+
17+
# Markdown
18+
[*.md]
19+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Set default behavior to automatically normalize line endings.
2+
* text=auto

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
node_modules
3+
*.vsix

.vscode/launch.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit:
5+
// https://code.visualstudio.com/docs/editor/debugging#_launch-configurations
6+
7+
"version": "0.2.0",
8+
"configurations": [
9+
{
10+
"name": "Extension",
11+
"type": "extensionHost",
12+
"request": "launch",
13+
"args": [
14+
"--extensionDevelopmentPath=${workspaceFolder}",
15+
"--folder-uri=${workspaceFolder}/tests",
16+
"${workspaceFolder}/tests/google.py",
17+
"${workspaceFolder}/tests/sphinx.py",
18+
]
19+
}
20+
]
21+
}

.vscodeignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.vscode/**
2+
.vscode-test/**
3+
.gitignore
4+
vsc-extension-quickstart.md

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Change Log
2+
3+
All notable changes to the "python-docstring-highlighter" extension will be documented in this file.
4+
5+
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6+
7+
## [Unreleased]
8+
9+
- Initial release

CONTRIBUTING.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Welcome to your VS Code Extension
2+
3+
## What's in the folder
4+
5+
* This folder contains all of the files necessary for the extension.
6+
* `package.json` - this is the manifest file in which the language support is declared and the location of the grammar files are defined.
7+
* `syntaxes/xxx.tmLanguage.json` - this is a Text mate grammar file that is used for tokenization.
8+
9+
## Get up and running straight away
10+
11+
* Press `F5` to open a new window with your extension loaded.
12+
* Create a new file with a file name suffix matching your language.
13+
* Verify that syntax highlighting works and that the language configuration settings are working.
14+
15+
## Make changes
16+
17+
* You can relaunch the extension from the debug toolbar after making changes to the files listed above.
18+
* You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes.
19+
20+
## Add more language features
21+
22+
* To add features such as IntelliSense, hovers and validators check out the VS Code extenders documentation at https://code.visualstudio.com/docs
23+
24+
## Install the extension
25+
26+
* To start using the extension with Visual Studio Code copy it into the `<user home>/.vscode/extensions` folder and restart Code.
27+
* To share the extension with the world, read on https://code.visualstudio.com/docs about publishing an extension.
28+
29+
## Publish the extension
30+
31+
* Install `vsce` by running `npm install -g @vscode/vsce`.
32+
* Run `vsce package` from the command line.
33+
* Run `vsce publish` and open https://marketplace.visualstudio.com and publish your extension.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Rodolphe Barbanneau
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Python Docstring Highlighter (VSCode Extension)
2+
3+
This repository contains the source code for the Python Docstring Highlighter extension for Visual Studio Code. This extension is designed to highlight docstrings in Python code, making it easier to read and understand the code. It is optimized for the **Google** and **Sphinx** styles docstring format, but it should work partially with other formats as well.

icon.png

47.5 KB
Loading

0 commit comments

Comments
 (0)