GithubHelp home page GithubHelp logo

Comments (4)

deplorableword avatar deplorableword commented on July 17, 2024

Excellent idea, have you got some git commit text I can use a reference?

from textmate-solarized.

jasonmp85 avatar jasonmp85 commented on July 17, 2024

Instead of a git COMMIT_EDITMSG file, here's an HTML file with a lot of invalid sections. I don't remember whether my git bundle is standard, but I can confirm the standard HTML bundle will add the invalid scope on many sections of this document in HTML mode:

<!DOC_TYPE HTML INVALID "-//W3C//DTD HTML 4.01//EN"
  "http://www.w3.org/TR/html4/strict.dtd>

<html>
  <head>
    <title> A terribly invalid document</title>
  </head>
  <body>
    <>Invalid Tag<>
    &invalid entity;
    <!- Invalid Comment ->

    <![INVALID_CDATA[
      Invalid line
    ]>
  </body>
</html>

If an invalid color is added to the Solarized bundle, it'll color these sections to stand out as "HEY THIS IS REALLY WRONG". I tried it locally but found the 'highlight current line' option interferes with the background color of the invalid scope if you have the caret on the invalid line, so if you can figure out how to override that then it'd be perfect.

from textmate-solarized.

fbzhong avatar fbzhong commented on July 17, 2024

That's really a great idea. I strongly suggest we implement this feature!

from textmate-solarized.

oesmith avatar oesmith commented on July 17, 2024

This would also be totally amazing when used together with Whitespace.tmbundle in TextMate 2 -- it adds an invalid scope to trailing whitespace and mixed spaces/tabs. https://github.com/mads379/Whitespace.tmbundle

I've already added an invalid scope to my own textmate-solarized config, and it works brilliantly!

from textmate-solarized.

Related Issues (20)

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.