how to comment several lines at once ?
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
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)
\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)
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 ___________________________________________________________________________________
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
2008/7/2 Alan Stone
: 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 ___________________________________________________________________________________
participants (8)
-
Alan Stone
-
Andrea Valle
-
Diego Depaoli
-
Hans van der Meer
-
Henning Hraban Ramm
-
Martin Schröder
-
Pau
-
Wolfgang Schuster