mark-code-blocks

Marks lines that contain embedded code so they can be styled as blocks

burodepeper

687

0

Bug Reports

0.1.0

MIT

GitHub

mark-code-blocks

A package for Atom that marks lines that contain embedded code so they can be styled as blocks instead of inlines. Currently detects:

TODO

Configure your syntax-theme or custom stylesheet

atom-text-editor {
  .line,
  .line-number {
    &.code-block {
      background: fade(SOME_AWESOME_COLOR, 10%);
    }

    &.math-block {
      background: fade(ANOTHER_COLOR, 10%);
    }
  }
}

Tests/examples

var "false" = true;
function test () {
  console.log("something");
}
I am another code block

| I'm | sort of | a table | | with a | separate | background-color |

$$ f \in {0,1}^\to{0,1}^ $$