Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suboptimal syntax highlighting for PHP #30

Closed
bobmulder opened this issue May 11, 2016 · 5 comments
Closed

Suboptimal syntax highlighting for PHP #30

bobmulder opened this issue May 11, 2016 · 5 comments
Assignees
Labels
bug Issue reports a bug
Milestone

Comments

@bobmulder
Copy link

Hey guys,

I love the theme, but I hate it that hightlighting isn't done by default, and the mentioned extension doesn't work as wel...

I get the following (for PHP):
image
* Only set and object?*

Please can we add support to this?

@d0ugal
Copy link

d0ugal commented May 11, 2016

Did you specify the language as PHP?

@squidfunk
Copy link
Owner

Highlighting is done using pygments and there may be classes that are undefined. I will provide a fix asap.

@squidfunk
Copy link
Owner

Can you provide the corresponding markdown? For me it seems pygments is completely broken for PHP, as I only get spans with the class x.

@d0ugal
Copy link

d0ugal commented May 11, 2016

Try starting the code sample with <?php. For example:

```php
<?php
public function registerContainerDefinitions(ContainerBuilder $container)
{
    // ...
}
```

@squidfunk
Copy link
Owner

Forgot about that, thanks @d0ugal

@squidfunk squidfunk added this to the 0.2.3 milestone May 11, 2016
@squidfunk squidfunk added the bug Issue reports a bug label May 11, 2016
@squidfunk squidfunk self-assigned this May 11, 2016
@squidfunk squidfunk changed the title No highlighting? Suboptimal syntax highlighting for PHP May 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue reports a bug
Projects
None yet
Development

No branches or pull requests

3 participants