Coder Social home page Coder Social logo

vscode-regex-notebook's Introduction

Native notebook for VS Code that renders regular expressions using https://regexper.com.

Sample showing rendered regular expression

This samples makes use of the following APIs/concepts

  • NotebookSerializer to load and save notebook documents from disk
  • NotebookController to execute regular expressions cells
  • NotebookRenderer to present regular expressions in a nice way

Running out of source

  • run git submodule init and git submodule update
  • run npm install in the terminal
  • also run npm run compile
  • select F5 to debug

Thanks

The rendering uses the https://regexper.com source code which works like a charme ๐Ÿ‘

vscode-regex-notebook's People

Contributors

jrieken avatar randomfractals avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vscode-regex-notebook's Issues

Does not compile

See below.
Note the error message :

error: [plugin: peg-loader] Cannot find module './src/renderer/regexper-static/node_modules/canopy'
Require stack:
- /Users/cog/vscode/vscode-regex-notebook/esbuild.js

Full session

git submodule init; git submodule update

Submodule 'regexper-static' (https://gitlab.com/javallone/regexper-static.git) registered for path 'src/renderer/regexper-static'
Cloning into '/Users/cog/vscode/vscode-regex-notebook/src/renderer/regexper-static'...
Submodule path 'src/renderer/regexper-static': checked out '6c17c40b34ddc792b5abfa5a5896950dae62d23b'
โžœ  vscode-regex-notebook git:(master) npm install

added 127 packages, and audited 128 packages in 2s

11 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
โžœ  vscode-regex-notebook git:(master) โœ— npm run compile

> [email protected] compile
> node esbuild.js

 > error: [plugin: peg-loader] Cannot find module './src/renderer/regexper-static/node_modules/canopy'
Require stack:
- /Users/cog/vscode/vscode-regex-notebook/esbuild.js

โžœ  vscode-regex-notebook git:(master) โœ— node -v
v16.16.0
โžœ  vscode-regex-notebook git:(master) โœ— npm -v
8.11.0
โžœ  vscode-regex-notebook git:(master) โœ— code-insiders -v
1.70.0-insider
12b08be500f8a307f30e92cbc3ee39ba115eab69
arm64

Text outside the boxes should be white in a dark theme

When using a dark theme in Visual Studio code, the text outside the boxes (e.g. "1..2 times" is still rendered in black, making it almost invisible:

"Dark+" theme (default dark theme):
grafik

"Light+" theme (default light theme):
grafik

Maybe it's possible to use colors from the theme. If not, using grey might be a workaround, just like the dashed boxes, which are visible in both themes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.