OpenTechSchool / html-css-beginners

A friendly, afternoon introduction to html and css.
opentechschool.github.io/html-css-beginners/
Other
21 stars 27 forks source link

Add highlight tags #2

Closed Ivoz closed 10 years ago

Ivoz commented 10 years ago

You can use these tags to highlight code properly

{% highlight html %}
<!-- html goes here -->
{% endhighlight %}

And you can replace html above with css to highlight css properly.

We should add this to the code samples in the tutorial

gsambrotta commented 10 years ago

Thanks for did it and sure we should add it to the code samples, can't you do that?

Ivoz commented 10 years ago

I'm not sure what you mean by that sentence :S

I've done so for the structures page, but not the other core pages so far.

gsambrotta commented 10 years ago

ahah sorry! I mean thanks for made the highlight code first. Than i'm asking if you can add this {% highlight html %} {% endhighlight %} instructions to the code samples (and for this i mean the README file with the markup guide) by your self. And def. if you have time and you can do for the others page as well, will be the best

Ivoz commented 10 years ago

I found out you can replace the markup engine to github's (redcarpet) which makes it a lot simpler to highlight code. Now you just need to indent it four spaces, much easier.

I've gone and done so in my latest few commits