Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A script that takes all the ids and classes from an html file and puts them as a block comment at the top of your css/js for easy reference

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

useful.py

A script that takes all the ids and classes from an html file and puts them as a block comment at the top of your css/js for easy reference

USAGE

python useful.py sourceFile targetFile

You can also pass multiple target files.

python useful.py sourceFile targetFile1 targetFile2...

you can use as many target files as you want but it is memory intensive to do so. It may crash.

OUTPUT

The output will look like

/* ID's: Id1 Id2 Id4

Classes: class1 class2 class3 */

Your js/css here.

Something went wrong with that request. Please try again.