Skip to content

Display form-feed characters (U+000C) as horizontal dividers in Atom.

License

Notifications You must be signed in to change notification settings

Alhadis/Atom-FormFeeds

Repository files navigation

Form-feed support for Atom

Build status: GitHub Actions Build status: AppVeyor Latest package version

Display form-feed characters (U+000C) as horizontal dividers in source code.

Placeholder preview

Inspired by the MELPA package of the same name.

Features:

  • Render form-feeds as horizontal dividers, as \f, or as ^L (caret notation)
  • Snippets for inserting form-feeds: \f, ^L
  • Editor commands (without default keybindings)
    • form-feeds:go-to-prev-feed
    • form-feeds:go-to-next-feed
    • form-feeds:strip-feeds

Customisation

You can tweak the rendering of form-feed indicators using your stylesheet:

@import "packages/form-feeds/styles/variables.less";

// Thicker border
@{ff-border} @{ff-selector}::before{
	border-top-width: 2px;
}

// Replace `^L` with a green `FF` when `placeholderStyle` is set to "caret"
@{ff-caret} @{ff-selector}::before{
	content: "FF";
	color: #0f0;
}

More info