Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8140349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:08:03+00:00 2026-06-06T12:08:03+00:00

I am cleaning up a .cfm file and removing commented out code. I’m not

  • 0

I am cleaning up a .cfm file and removing commented out code. I’m not sure what can be safely removed, because doesn’t so scripting languages use commented out code like SSI?

For example

<!--[if lt IE 8]>
    <style type="text/css" media="all">
        @import "../styles/ie.css";
    </style>
    <script type="text/javascript" src="../scripts/jquery.bgiframe.min.js"></script>
<![endif]-->

I think is important but do I need to keep anything between <!-- and --> in this:

<!-- /#toolbar -->

    <div id="content">

    <div id="sidebar-left" class="sidebar">
        <div class="top"></div>
        <div id="sidebar-left-inner">
            <p id="date"></p>
            <cfinclude template="requires/nowProcessing.cfm">
            <!-- /.now-serving -->

            <div id="sub-nav">
            <!-- InstanceBeginEditable name="leftMenuInclude" -->

Not sure if relevant but the file contains JavaScript and CSS and possibly other languages.

EDIT:Out of curiousity what language are these from?

<!-- InstanceBeginEditable name="leftMenuInclude" -->
<!-- /#main -->
<!-- /#content -->
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T12:08:05+00:00Added an answer on June 6, 2026 at 12:08 pm

    Since you aren’t using a script this is easy… Simply remove commented out code only!

    This does not mean that you should remove everything between:

    <!-- -->
    

    Some will be comments, for example:

    <!-- this is a comment to explain something -->
    

    And some will be conditional comments, for example:

    <!--[if lt IE 8]> <![endif]-->
    

    Use your knowledge of the code to remove the appropriate commented out code… aka, code that has no purpose!

    Make sure you understand the difference between comments and commented out code!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm cleaning some of the Python code I wrote when I was...not as knowledgeable.
I've been cleaning up some code from a module I'm extending and I can't
While cleaning some code today written by someone else, I changed the access modifier
I'm cleaning up CSS from a previous designer. The file is messy. One example
I've been cleaning up my code and so far so good, and I only
Me and several other developers are currently cleaning up our legacy code base, mostly
I'm cleaning up some code, and I have a class with an entity that
I am cleaning up some code in a C# app that I wrote and
I am cleaning up some old code converting it to work asynchronously. psDelegate.GetStops decStops
I am cleaning my Perl code for production release and came across a weird

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.