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 6644001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:06:59+00:00 2026-05-26T00:06:59+00:00

When working on a classic asp file in Visual Studio 2010, html is pickup

  • 0

When working on a classic asp file in Visual Studio 2010, html is pickup up as being collapsible. I’d like to be able my own regions within normal asp.

How can I add such “regions” ?

  • 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-05-26T00:06:59+00:00Added an answer on May 26, 2026 at 12:06 am

    There’s no built-in support for this, but you can write your own Macro command which will achieve the same result.

    Indeed, this has already been done. See Region Tools For Visual Studio and also a tutorial based upon that work for providing region support in JavaScript (written for Visual Studio 2008, although easily tweaked for Visual Studio 2010).

    The macro essentially looks for specifically formatted comment lines then uses the programmability of the IDE’s editor window to provide a “collapsed” area between the two specially formatted comment blocks.

    In the JavaScript example, there are two hard-coded constants that represent the specially formatted comment blocks that represent the start and end of regions:

    Const REGION_START As String = "//#region"
    Const REGION_END As String = "//#endregion"
    

    The // at the start signifies the start of a comment within JavaScript, but this won’t work in “classic ASP”, so you can change this to the relevant comment signifier for VBScript, for example something like:

    Const REGION_START As String = "<!--//#region-->"
    Const REGION_END As String = "<!--//#endregion-->"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with a site originally coded in classic ASP and slowly being migrated
I'm working on a website with legacy Classic ASP pages (being converted to ASP.NET
First of all, I'm still working in classic ASP (vbScript) with an MS Access
I’m currently working on a classic ASP project talking to an Oracle database. I’m
I've got the unpleasurable task of working on a Classic ASP site (VBSCRIPT) and
I'm working on updating a classic ASP web page used by a number of
I have this classic ASP site which has been working fine until we updated
Very odd problem as this is working perfectly on our old Classic ASP site.
Working on an old site in asp classic. I want to write a function
I am working with a legacy ASP Classic solution which is load balanced (via

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.