cfmt

command module
v0.0.0-...-b51d2b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

README

cfmt

The cfmt program formats a comment in source code. It reads from standard input and writes to standard output. It expects standard intput to start with a comment. It formats the comment and then passes the rest of the input read through without any formatting.

To use it from vi, place your cursor on the first line of the comment you wish to reformat and then call it with !}cfmt<ENTER<.

If cfmt is not given a delimiter it will assume one of "-- ", "//" or "#" is the delimiter. The delimiter may be preceeded white space (tabs or spaces).

Documentation

Overview

cfmt reformats its input such that the initial block comments will fit in 80 columns. All input following the first non-block comment line is copied to output without change.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL