It wouldn't be a bad idea to add support for multi-line comments. I've created a ticket to try and get this into 6.2. Should just be a maplexer.l change- patches most welcome!
http://trac.osgeo.org/mapserver/ticket/4097 Steve -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Richard Greenwood Sent: Monday, November 28, 2011 9:38 AM To: Jeff McKenna Cc: [email protected] Subject: Re: [mapserver-users] comment out large section of map file On Mon, Nov 28, 2011 at 8:08 AM, Jeff McKenna <[email protected]> wrote: > On 11-11-28 12:38 AM, Matt McClelland wrote: >> >> Hi All >> >> I notice you can comment one line in a mapfile using a # >> Is there a way of commenting out a large section like in PHP where you >> use /* */ ?? >> It would be handing when working on large map files. >> >> Matt :) > > Hi Matt, > > Besides the INCLUDE use, I am constantly constantly using a macro/plugin for > my text editor (on windows I use Notepad++ or TextPad) that both have a > plugin to allow you to select a whole block of your mapfile code and then > press a single button to add a '#' to the beginning of each line selected - > this is SO HANDY for managing mapfiles. I live on this plugin (they have a > COMMENT or UNCOMMENT functionality). > > Search your favorite text editor for a plugin/macro for adding comments (#), > it probably exists. > > Happy editing! > > > -jeff > Another Notepad++ trick is using the Alt+arrowKey (or mouse) to block select. So to comment out a block move your cursor to the left column, hold the Alt key, down arrow to the edn of the block, then type "#". I prefer this over the macro becasue the macro toggles comments and if you already have comment within the block you are commenting, then the existing comments are un-commented. Rich -- Richard Greenwood [email protected] www.greenwoodmap.com _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
