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

Enable syntax highlighting for inline code #337

Closed
RyanGlScott opened this issue Jul 19, 2014 · 1 comment
Closed

Enable syntax highlighting for inline code #337

RyanGlScott opened this issue Jul 19, 2014 · 1 comment

Comments

@RyanGlScott
Copy link

Currently, you can syntax-highlight code blocks. For example,

```haskell
main :: IO ()
main = putStrLn "Hello, World!"
```

renders as

main :: IO ()
main = putStrLn "Hello, World!"

However, you cannot do the same with inline code such as

`main :: IO ()`

or

```main :: IO ()```

both of which get rendered as main :: IO () (without syntax highlighting) when used inline. It would be nice to have something like

```haskell main :: IO ()```

that gives you inline syntax-highlighting (right now, that would render as haskell main :: IO ()).

@gjtorikian
Copy link
Contributor

I don't disagree with this. I wonder what the performance implications would be.

In any case, we use html-pipeline, an open-source tool written by a GitHubber, to support syntax highlighting. Sorry to reroute you, but I suggest you open an Issue on that repository for this. I'll close this one out.

You'd basically need to change this line to match on code tags, as well as pre.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants