atom / one-dark-syntax

Atom One dark syntax theme
MIT License
448 stars 236 forks source link

Github code block formatting #65

Closed tillkruss closed 8 years ago

tillkruss commented 8 years ago

Standard code blocks are highlighted in green.

$foo = new Foobar;

But code blocks with their language specified don't have any highlighting at all.

```php
$foo = new Foobar;
simurai commented 8 years ago

@tillkruss Sorry for the late reply. For now you could add the following to your styles.less file:

atom-text-editor::shadow .markup.gfm .embedded.php {
  color: hsl( 95, 38%, 62%);
}

That should make PHP code blocks green too:

screen shot 2016-06-14 at 3 59 56 pm

We could add the above to this theme, but it would be even better to open an issue in language-php. Then full syntax highlighting might can be added and not be treated as raw (without language) code.