GithubHelp home page GithubHelp logo

drrobotnik / comment-be-gone Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 152 KB

Specifically created to remove PHP and HTML comments from "skeleton" frameworks. Your skeletons are too chatty...

PHP 100.00%

comment-be-gone's Introduction

Comments Be Gone!

alt text

Specifically created to remove PHP and HTML comments from "skeleton" frameworks. Your skeletons are too chatty...

Why?

Because this is absurd…

<div id="primary" class="content-area">
		<div id="content" class="site-content" role="main">

			<?php while ( have_posts() ) : the_post(); ?>

				<?php get_template_part( 'content', 'page' ); ?>

				<?php comments_template( '', true ); ?>

			<?php endwhile; // end of loop, in case you forgot. ?>

		</div><!-- #content .site-content (unnecessary w/proper indenting) -->
	</div><!-- #primary .content-area -->

In the case of skeleton frameworks, where I'm going to take it, remove most of the code for each of my projects you're adding unnecessary safety nets.

Keep in Mind

This is intended to run in the directory of the PHP files you want to clean out. It does not run recursively, so you'll need to run the script in each folder.

Most importantly: There are no safety measures set. The script runs when you hit enter so absolutely do not run this on code before fully understanding that you're batch modifying code on a folder basis. There is no revert.

That's what git's for :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.