Skip to content

Latest commit

 

History

History
87 lines (63 loc) · 3.06 KB

README.md

File metadata and controls

87 lines (63 loc) · 3.06 KB

nimiBoost

Features

  • Syntax highlighting for markdown/Python/HTML/Nim in strings marked with hlMd/hlPy/hlHtml/hlNim. For markdown use hlMd or hlMdF (F-variant is alias for string interpolation: &(hlMd""""Text here""")). Example:
nbText: hlMd"""
# The markdown
- goes
- here
"""
  • Syntax highlight python code in nbPython blocks using hlPy or hlPyF similairly as hlMd.

  • Syntax highlight HTML code using hlHtml or hlHtmlF similairly as hlMd.

  • Syntax highlight Nim code using hlNim or hlNimF similairly as hlMd.

  • Preview current Nimib-file using the task Nimib Preview, clicking on NimiBoost 🚀 in the statusbar or the shortcut Ctrl+K V (Ctrl+K, release, V).

    • codeAsInSource setting is available to use -d:nimibPreviewCodeAsInSource in the preview.

Requirements

Requires an installation of Nim and Nimib. There is a separate Nim extension for general Nim programming.

Installation

You may have to restart VSCode for all features to activate.

Known Issues

  • Only triple-quote strings supported.
  • It's picky about where the ending """ is. It has to be on it's own row. So this is not allowed:
nbText: hlMd"""
# Header
text, more text and even more text"""
# """ <-- This is the correct position!

Release Notes

0.4.3

  • hlHtml and hlHtmlF for highlighting HTML in strings.

0.4.2

  • Nim highlighted strings now supported using hlNim and hlNimF.

0.4.1

  • Python highlighted strings are now supported using the hlPy and hlPyF markers:
nbPython: hlPy"""
import numpy as np
print(np.linspace(0, 10, 11))
"""
  • Nimib is switching over from using md and fmd to the more general hlMd and hlMdF. The old variants will still work but may be removed in the future.

0.4

  • No more annoying popups saying that the compilation has started and succeded! Now all of that happens in the statusbar at the bottom.
  • new configuration option cmdArgs to pass in command line arguments to the compiler.
  • -d:release is no longer the default, use above-mentioned configuration if you want to compile in release mode.

0.3.1

Limit the preview keybindings to Nim files (it tried to run it on markdown files otherwise).

0.3

Preview mode is upgraded to understand nimib.toml files and will no longer create temporary folders. Files will go where nimib would have put them. The old command is still available but under the name Nimib Preview (Legacy) which you can add your own keybinding for if you want to keep it. This means themes like nimiBook will have correct styling and loading of files works as expected in nimib.

0.2

  • Support nimib 0.2
  • Added setting to enable codeAsInSource.

0.1.2

Fix syntax highlighting for indented nbText blocks.

0.1.1

Improved the error experience. Now the stderr is shown in the Output window.

0.1

Initial release of NimiBoost

Todo

Empty for now.