Git Product home page Git Product logo

markdown-spaceasnewline-highlight's Introduction

Markdown SpaceAsNewLine Highlight

Highlight the space at the end of each line. It is convenient to use spaces as new line in markdown notation. (I've never seen a markdown file with spaces as new line except me) Markdown SpaceAsNewLine Highlight

Feature

  • Highlight the space at the end of each line
  • You can change the highlight color
  • When you save a document, save one space or three or more spaces as two spaces
  • Only works if the current document's Language Mode is Markdown

Usage

  1. Install this extension from vscode
  2. Open a markdown file
  3. Edit the document and make sure spaces are highlighted
  4. Change the highlight color to your liking
  5. Enjoy!

Command

This extension provides the following command. Let's write in settings.json.

{
    "workbench.colorCustomizations": {
        "twoOrMoreSpaceHighlight": "#FFFFFF"
    }
}

Note

  • If you're opening a markdown file but doesn't work, make sure the Language Mode in the bottom right corner of the editor is "Markdown".

  • If all the spaces in each line have removed when you save a document, you can avoid it by the following setting.

{
    "[markdown]": {
        "files.trimTrailingWhitespace": false,
    }
}

Change Log

here

Credit

This extension was created with reference to vscode-extension-samples.

markdown-spaceasnewline-highlight's People

Contributors

infifty avatar dependabot[bot] avatar

Watchers

 avatar

markdown-spaceasnewline-highlight's Issues

Change Log Link not working

The link here to the change log is not working. It ends with a ',' (comma) and this messes up the URL.

Thanks for the fine extension! ๐Ÿงก

Documentation to change colors not complete

The documentation states twoOrMoreSpaceHighlight as property for changing the color.
This does not work (at least not in VSCodium 1.53.2).

Since the extension is called myextension in its package.json, changing the property name to myextension.twoOrMoreSpaceHighlight works.

Upd: It's also in the file extension.ts as borderColor: { id: 'myextension.twoOrMoreSpaceHighlight' }

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.