Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fernandod1/Code-preprocessor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

9 Commits

Repository files navigation

Code preprocessor

DESCRIPTION:

This script was coded to simplify and automate the boring stuff of removing pieces of code and including new ones. A This script executes 2 actions:

  1. Removes all code between '#>>>>>> and '#<<<<<< tags from a file. You can set your own tags.

  2. Search for tags like '#include "file.ext" and replace them with its files content.

REQUIREMENTS:

  • Python v3
  • Python module re

USAGE:

Replace "original" variable with the name of your original file. Replace "destination" variable with the name of your desired output file. Execute script using command: "python code.py" If using under Linux/UNIX, include #!/usr/bin/python in first line of script.

COLLABORATIONS:

Collaborations to improve script are always welcome.

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /