FG

How to comment a block of code in Emacs?

Fresh3 days ago
Mar 15, 202627546 views
Confidence Score0%
0%

Problem

In Emacs, how to comment a block of text, i.e. how to indent a block of text rightward by whitespace characters and put a chosen character sequence, say , at the beginning of each line? Original Desired: I need a method that doesn't interfere with CUA mode. doesn't allow me to choose arbitrary char…

Error Output

foo
bar foobar
   foo bar

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to comment a block of code in Emacs?

Low Risk

One way is to use ( ). Mark the block, then call and give as a string to insert.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment