Skip to content

pauliusbaranauskas/python-string-sql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python string SQL

Need for this project arise of daily work with PySpark scripts that have a lot of sql inside. This project's aim is to enable syntax highlighting for SQL inside Python multiline strings, especially PySpark, using VS Code.

Installation

As the extension is in development, installation is only possible manually.

Install node.js and then then install the vsce package:

npm install --global vsce

Clone the repository and open a terminal at the project root and execute the following command:

vsce package

The resulting .vsix file can be installed via the VSCode GUI.

Usage

Currently:

SQL hilighting starts after keywords SELECT, INSERT and CREATE TABLE at the start of multi-line string. example

Acknowledgements

This project was cloned from Mark Wibrow project python-string-sql, that was was adpated from es6-string-html. Considerable insight into writing the TextMate grammars used by VS Code, can be found in an old blog post by Matt Neuburg.

Contribution

Currently, only contributors to the Mark's Wibrow's project and me have contributed. If anybody would like to contribute, just create a pull request and/or issue. Thank you!

About

Highlight SQL inside multiline python strings using VS Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published