Giter Club home page Giter Club logo

atom-underline-trailing-whitespace's Introduction

atom-underline-trailing-whitespace

An Atom package for providing a visual cue for trailing whitespace with a subtle underline. This package also ignores the current cursor line.

underline-trailing-whitespace

Installation

apm install underline-trailing-whitespace

Customization

You can change the underline color with the following:

atom-text-editor,
atom-text-editor::shadow  {

  .trailing-whitespace {
    border-bottom-color: @my-new-color;
  }
}

License

MIT

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted with <3 by John Otander(@4lpine).

atom-underline-trailing-whitespace's People

Contributors

johno avatar krzysztof-sikorski avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

atom-underline-trailing-whitespace's Issues

Deprecated selector in `underline-trailing-whitespace/styles/underline-trailing-whitespace.less`

In underline-trailing-whitespace/styles/underline-trailing-whitespace.less:

Starting from Atom v1.13.0, the contents of atom-text-editor elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using :host and ::shadow pseudo-selectors, and prepend all your syntax selectors with syntax--. To prevent breakage with existing style sheets, Atom will automatically upgrade the following selectors:

  • atom-text-editor .trailing-whitespace, atom-text-editor::shadow .trailing-whitespace => atom-text-editor .trailing-whitespace, atom-text-editor.editor .trailing-whitespace

  • atom-text-editor .cursor-line .trailing-whitespace, atom-text-editor::shadow .cursor-line .trailing-whitespace => atom-text-editor .cursor-line .trailing-whitespace, atom-text-editor.editor .cursor-line .trailing-whitespace

Automatic translation of selectors will be removed in a few release cycles to minimize startup time. Please, make sure to upgrade the above selectors as soon as possible.

Can't change underline color

Howdy,

Tired all of the following styles, none are working. I looked at the closed issues and saw the "underline-trailing-whitespace" so I tried that too.

Styles tried:

.trailing-whitespace {
    border-bottom-color: cyan;
}

trailing-whitespace {
    border-bottom-color: purple;
}

underline-trailing-whitespace {
  border-bottom-color: green;
}

.underline-trailing-whitespace {
  border-bottom-color: red;
}

I closed the tabs and Atom after changing the styles.

I've only installed Atom today, hopefully it's just me doing something stupid. I'm modifying the /home/Username/.atom/styles.less file.

Cheers.

This doesn't work

I installed it into Atom, restarted, opened a file, added some trailing whitespace, saved, and at no time did I see any underline. Something isn't working.

Atom v0.187, underline-trailing-whitespace v1.0.1.

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the underline-trailing-whitespace package

Package.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:460:9)
Package.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:471:32)
Package.loadStylesheets (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:453:38)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:185:19)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:165:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:179:12)

Issue with line positioning

I'm not sure now to best describe this issue, so here's a gif:

underline

Trailing whitespaces on line 5, and when I select line 5, line 6 goes up a little.

This issue probably has something to do with css border/padding.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.