auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(Un)comment line(s) with markers at arbitrary position(s) in this/these


From: Hongyi Zhao
Subject: (Un)comment line(s) with markers at arbitrary position(s) in this/these line.
Date: Tue, 2 May 2023 08:10:38 +0800

Hi here,

I want to have the feature of (Un)comment a line or several lines with
markers at an arbitrary position(s) in/spanning this/these line(s).
Say in the following example, `|` indicates the markers:

\usepackage|[T1]{fontenc}

\usepackage[utf8]{inputenc}|


`C-c ;` gives the following:

\usepackage% [T1]{fontenc}
% \usepackage[utf8]{inputenc}

`C-c %` gives the following:

\usepackage[T1]{fontenc}

% \usepackage[utf8]{inputenc}

But the desired result is something as follows:

% \usepackage[T1]{fontenc}
%
% \usepackage[utf8]{inputenc}

Any tips will be appreciated.

Regards,
Zhao
-- 
Assoc. Prof. Hongsheng Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province



reply via email to

[Prev in Thread] Current Thread [Next in Thread]