ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* how to comment several lines at once ?
@ 2008-07-02 13:05 Alan Stone
  2008-07-02 13:08 ` Andrea Valle
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Alan Stone @ 2008-07-02 13:05 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 165 bytes --]

Hi,

Guess this is (Plain) TeX stuff - haven't found the answer...

How do you comment several lines at once, instead of prefixing each line
with the % sign ?

Alan

[-- Attachment #1.2: Type: text/html, Size: 191 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: how to comment several lines at once ?
  2008-07-02 13:05 how to comment several lines at once ? Alan Stone
@ 2008-07-02 13:08 ` Andrea Valle
  2008-07-02 13:11 ` Martin Schröder
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Andrea Valle @ 2008-07-02 13:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1365 bytes --]

AFAIK it is not possible direclty. I've asked it once. Should be in  
archive

Best

-a-

On 2 Jul 2008, at 15:05, Alan Stone wrote:

> Hi,
>
> Guess this is (Plain) TeX stuff - haven't found the answer...
>
> How do you comment several lines at once, instead of prefixing each  
> line with the % sign ?
>
> Alan
> ______________________________________________________________________ 
> _____________
> If your question is of interest to others as well, please add an  
> entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ 
> ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ______________________________________________________________________ 
> _____________

--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.myspace.com/andreavalle
--> andrea.valle@unito.it
--------------------------------------------------


"
Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty
"
(Ken Perlin on noise)






[-- Attachment #1.2: Type: text/html, Size: 6626 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: how to comment several lines at once ?
  2008-07-02 13:05 how to comment several lines at once ? Alan Stone
  2008-07-02 13:08 ` Andrea Valle
@ 2008-07-02 13:11 ` Martin Schröder
  2008-07-02 13:11 ` Wolfgang Schuster
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Martin Schröder @ 2008-07-02 13:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2008/7/2 Alan Stone <software.list.1es9s@gmail.com>:
> How do you comment several lines at once, instead of prefixing each line
> with the % sign ?

\iffalse
\fi

Best
   Martin
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: how to comment several lines at once ?
  2008-07-02 13:05 how to comment several lines at once ? Alan Stone
  2008-07-02 13:08 ` Andrea Valle
  2008-07-02 13:11 ` Martin Schröder
@ 2008-07-02 13:11 ` Wolfgang Schuster
  2008-07-03 11:20   ` Henning Hraban Ramm
  2008-07-02 13:14 ` Hans van der Meer
  2008-07-02 13:55 ` Diego Depaoli
  4 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2008-07-02 13:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Jul 2, 2008 at 3:05 PM, Alan Stone
<software.list.1es9s@gmail.com> wrote:
> Hi,
>
> Guess this is (Plain) TeX stuff - haven't found the answer...
>
> How do you comment several lines at once, instead of prefixing each line
> with the % sign ?

\starthiding
...
\stophiding

Regards
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: how to comment several lines at once ?
  2008-07-02 13:05 how to comment several lines at once ? Alan Stone
                   ` (2 preceding siblings ...)
  2008-07-02 13:11 ` Wolfgang Schuster
@ 2008-07-02 13:14 ` Hans van der Meer
  2008-07-02 13:55 ` Diego Depaoli
  4 siblings, 0 replies; 8+ messages in thread
From: Hans van der Meer @ 2008-07-02 13:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

In ConTeXt you should be able to say:

\starthiding
-- this stuff will not be processed --
\stophiding

Hans van der Meer




On 2 jul 2008, at 15:05, Alan Stone wrote:

> Hi,
>
> Guess this is (Plain) TeX stuff - haven't found the answer...
>
> How do you comment several lines at once, instead of prefixing each  
> line with the % sign ?
>
> Alan
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an  
> entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: how to comment several lines at once ?
  2008-07-02 13:05 how to comment several lines at once ? Alan Stone
                   ` (3 preceding siblings ...)
  2008-07-02 13:14 ` Hans van der Meer
@ 2008-07-02 13:55 ` Diego Depaoli
  2008-07-03  7:07   ` Pau
  4 siblings, 1 reply; 8+ messages in thread
From: Diego Depaoli @ 2008-07-02 13:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2008/7/2 Alan Stone <software.list.1es9s@gmail.com>:
> Hi,
>
> Guess this is (Plain) TeX stuff - haven't found the answer...
>
> How do you comment several lines at once, instead of prefixing each line
> with the % sign ?
in vim
:A,Bs/^/%
A=start line
B=end line

-- 
Diego Depaoli
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: how to comment several lines at once ?
  2008-07-02 13:55 ` Diego Depaoli
@ 2008-07-03  7:07   ` Pau
  0 siblings, 0 replies; 8+ messages in thread
From: Pau @ 2008-07-03  7:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

in vim(rc):

function! CommentTeX()
  map - :s/^/% /<CR>:nohlsearch<CR>
  map _ :s/^\s*% \=//<CR>:nohlsearch<CR>
  set comments=:%
endfunction

autocmd FileType tex       call CommentTeX()

This way, in visual you select the part of the document you want to
comment, then press -
and, voila, you get a % in fornt of every line. To uncomment, press _

2008/7/2 Diego Depaoli <trebestie@gmail.com>:
> 2008/7/2 Alan Stone <software.list.1es9s@gmail.com>:
>> Hi,
>>
>> Guess this is (Plain) TeX stuff - haven't found the answer...
>>
>> How do you comment several lines at once, instead of prefixing each line
>> with the % sign ?
> in vim
> :A,Bs/^/%
> A=start line
> B=end line
>
> --
> Diego Depaoli
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: how to comment several lines at once ?
  2008-07-02 13:11 ` Wolfgang Schuster
@ 2008-07-03 11:20   ` Henning Hraban Ramm
  0 siblings, 0 replies; 8+ messages in thread
From: Henning Hraban Ramm @ 2008-07-03 11:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

>
> \starthiding
> ...
> \stophiding


Ah, never seen that.
Myself I normally use

\startmode[obsolete] % or the like

\stopmode


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-07-03 11:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-02 13:05 how to comment several lines at once ? Alan Stone
2008-07-02 13:08 ` Andrea Valle
2008-07-02 13:11 ` Martin Schröder
2008-07-02 13:11 ` Wolfgang Schuster
2008-07-03 11:20   ` Henning Hraban Ramm
2008-07-02 13:14 ` Hans van der Meer
2008-07-02 13:55 ` Diego Depaoli
2008-07-03  7:07   ` Pau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).