Literate Programming for Visual Studio Code.This extension is inspired by the work done by Physically Based Rendering: From Theory To Implementation by Matt Pharr, Wenzel Jakob, and Greg Humphreys. The ultimate goal is to have automatic HTML and code generation as you type. HTML preview is already essentially available through the Markdown preview feature of Visual Studio Code. Code generation exists, but that has to be run manually still. Note: enabling this extension will inject the literate style CSS developed for this extension. Disable this extension in workspaces where you don't want the style to influence Markdown document previews. FeaturesUse the literate programming paradigm to write your programs. Documents that end
with the extension Literate documents are written with regular Markdown. The CommonMark specification is followed through the use of the markdown-it library. The code fence has been extended to include fragment identifiers and their related settings. If an The Code fragments can be created by adding Adding to existing fragments is done through A top-level code fragment has a
The file name is relative to the workspace folder. It can contain subfolders, which will be automatically created during code generation . After the file name you can specify extra settings, currently just
Code fragments can reference other code fragments in code by using the code
fragment tag If a fragment use is indented the indentation will be maintained for its realization. This makes it suitable for use with languages like Python that use indentation to denote scope. The command Example and documentationThe HTML documentation generated from this repository CreditsExtension author: Nathan |