Consider the following snippet,
def foo():
do_something()
do_something_else()
print('Hello!')
return 0
is there a plugin able to comment it as illustrated below
def foo():
do_something()
do_something_else()
# print('Hello!')
return 0
instead of,
def foo():
do_something()
do_something_else()
# print('Hello!')
return 0
Likewise, for LaTeX,
\begin{itemize}
\item Accent
\item Dialect
\item Register
\item Discourse analysis
\item Language varieties
\item Linguistic description
\item Pragmatics
\item Variation
\end{itemize}
\begin{itemize}
\item Accent
\item Dialect
\item Register
% \item Discourse analysis
\item Language varieties
\item Linguistic description
\item Pragmatics
\item Variation
\end{itemize}
and for C++,
strncpy (protobuf, protocol, PROTOBUFSIZE - 1);
protobuf[PROTOBUFSIZE-1] = '\0';
for (i = 0; i < PROTOBUFSIZE && protobuf[i] != '\0'; i++)
if (isupper ((unsigned char)protobuf[i]))
protobuf[i] = tolower ((unsigned char)protobuf[i]);
strncpy (protobuf, protocol, PROTOBUFSIZE - 1);
// protobuf[PROTOBUFSIZE-1] = '\0';
for (i = 0; i < PROTOBUFSIZE && protobuf[i] != '\0'; i++)
if (isupper ((unsigned char)protobuf[i]))
protobuf[i] = tolower ((unsigned char)protobuf[i]);