clement-ux / tree-builder

Convert your file indented with space (or tab) to a .tree file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tree-builder

Convert your file indented with space (or tab) to a .tree file.

Installation

  1. Clone this repo.
  git clone https://github.com/clement-ux/tree-builder.git
  cd tree-builder
  1. Write your file (don't matter which extension).

  2. Run the script (don't forget to change the file name on the first line).

python tree-builder.py
  1. Generated .tree file will be on the same folder as your file name, with same name, but with .tree extension.

Usage/Example

Capture d’écran 2023-08-04 à 23 38 59 Capture d’écran 2023-08-04 à 23 39 05

Recommandations

Use this extension on vscode marketplace for a better syntax highlighting. https://marketplace.visualstudio.com/items?itemName=CTC.vscode-tree-extension

Comments

This script works well on major simple case but is still buggy on some edge case.

About

Convert your file indented with space (or tab) to a .tree file


Languages

Language:Python 100.0%