A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/simonrenger/markdown-include-lines below:

simonrenger/markdown-include-lines: This is a markdown extension for python which allows you to include lines of a whole source file.

This is a markdown extension for python allows you to include lines from a source file or a whole source file. This project was inspired by https://github.com/cmacmackin/markdown-include. I tried to make the syntax as simple and intuitive as possible.

What can you do with this extension? How to use this extension:

([...] subtsitute with the right content)

{[file type]* [start at line] - [end at line] [file]}

* file type is for the highlight part of the code block.

Range of lines:

{python 15-20 include.py}

In case you want to include the whole file:

In case you want to include only one line:

In case you want to include only certain lines of code:

{python [15,20,3] include.py}

In case you want to include only certain lines of code:

{cpp [15,20,3] I:\Simon\Y1\BlockB\Coding\Project\Game\main.cpp}

The extension will generate the following output:

I:\Simon\Y1\BlockB\Coding\Project\Game\main.cpp

[...]
#include "Game.h"

[...]
    const float fps = 100;

[...]
    sr::Shader shader("Basic3D");

Note: [...] are actual part of this extension they get generated when ever you use this:

{cpp [15,20,3] I:\Simon\Y1\BlockB\Coding\Project\Game\main.cpp}

syntax.

$ pip install git+https://github.com/simonrenger/markdown-include-lines.git

or

You just clone this repo and then you run:

cd /where/ever/the/files/are
$ pip install .

This should install the exention and then you can use it like any other markdown extension.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4