How to add syntax highlighting to your website in 6 minutes

Поділитися
Вставка
  • Опубліковано 3 жов 2024
  • Add syntax highlighting to your HTML website or Ghost blog in just a few minutes with PrismJS and learn how to add more functionality with plugins and custom themes!
    Links
    _______________________________________________
    CDNJS: cdnjs.com/libr...
    PrismJS Theme preview: prismjs.com/te...
    PrismJS Download: prismjs.com/do...
    Line number script: pastebin.com/2...
    Prism theme generator: k88hudson.githu...
    Blog post
    _______________________________________________
    bluehippo.tech
    bluehippo.tech...
    Music
    _______________________________________________
    Last Summer by Ikson: / ikson Music promoted by Audio Library • Last Summer - Ikson (N...

КОМЕНТАРІ • 14

  • @bluehippotech
    @bluehippotech  4 роки тому

    S I M P L Y

  • @bwzffgh7
    @bwzffgh7 2 роки тому +1

    Thanks for this info. A syntax-highlighting CSS library was surprisingly difficult to find, considering that these are so important today. PrismJS is great and pretty easy to use and customize. It only took a few minutes to integrate it into an existing wordpress site with the ability to customize the language, line-numbers, etc per code block right from the wordpress editor. The simplicity is much appreciated. Note that the only way I even found prismjs was because of your UA-cam video. It did not appear in any of the google or bing search results in my research over the past week.

  • @hak618
    @hak618 3 роки тому +1

    Thanks for the content. You said to add "line-numbers" to the body tag. I wanted to see if I could choose which code blocks will have the line numbers so we could mix code blocks. I tried adding the class name to the tag instead and it worked.
    function sum( sum1, sum2) {
    return sum1 + sum2
    }
    sum(2,4)

    #Python
    print("Hello World!")

  • @anujgupta153
    @anujgupta153 3 роки тому +1

    Hey working on a code editor for my browser, how can I use prism and still be able to change the code in the browser rather than only through VSCode?

    • @bluehippotech
      @bluehippotech  3 роки тому

      I'm not quite sure I understand what you're trying to do

  • @CriminalIdentified
    @CriminalIdentified 2 роки тому

    I have subscribed at 146 number I am your 147th and I am 100% sure youR channel is going to blow up soon ❤️

  • @darkslashhero
    @darkslashhero 2 роки тому

    Nice

  • @elonyemp3029
    @elonyemp3029 2 роки тому

    Thanks

  • @geooogle
    @geooogle 3 роки тому

    Just wanrt to say, keep going on your videos, your videos are short, cut, clear, helpful and you will do well. thanks for this one.

  • @studentocean_
    @studentocean_ Рік тому

    Everything is clear, but all the +,-,=, ! are highlighted with grey color what shall i do