Learn How To Use The Modern Syntax Highlighter Shiki 式

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ย. 2024

ความคิดเห็น • 24

  • @abtix
    @abtix 4 หลายเดือนก่อน +1

    This is such a good video. I tried using Shiki 2 weeks ago but I was unfamiliar with it and couldn't really figure out how I could utilize it to its fullest potential, and this video literally gave me everything I needed. Thank you.

  • @TheHermitHacker
    @TheHermitHacker 4 หลายเดือนก่อน +2

    Very nice! I think I will adopt this in my personal website I'm working-- because I'll be sharing code.

  • @a7mdbest15
    @a7mdbest15 4 หลายเดือนก่อน +1

    this is going to be a very awesome and handy tool for educational content

  • @anxpara
    @anxpara 4 หลายเดือนก่อน +5

    In my experience, loading shiki is relatively slow (even with the fine-grained bundle), so I ended up writing an independent watch script that highlights particular files and then saves a map of all highlighted code within a $lib/ script. Great solution if you don't need to highlight anything on-the-fly

    • @JoyofCodeDev
      @JoyofCodeDev  4 หลายเดือนก่อน +1

      smart

    • @julienblanchon6082
      @julienblanchon6082 4 หลายเดือนก่อน +2

      Wow wonderfull idea, is the code public ?

    • @anxpara
      @anxpara 4 หลายเดือนก่อน

      @@julienblanchon6082 a more generalized version of that script would take a list of files/directories to watch, use the filenames as the map keys, and then let the app sort out which highlights go where

    • @anxpara
      @anxpara 4 หลายเดือนก่อน

      @@julienblanchon6082 my first comment might have gotten filtered by youtube. it's buried in my Projectrix repo on my github

    • @anxpara
      @anxpara 4 หลายเดือนก่อน

      @@julienblanchon6082 yes, but youtube censors comments with links

  • @Y-anon
    @Y-anon 4 หลายเดือนก่อน

    the PR for Shiki Magic Move Svelte renderer was accepted :D
    And tbh, it's one of the very few highlighter that actually supports svelte! so yeah. Much love

  • @maninalift
    @maninalift 4 หลายเดือนก่อน

    Nice timing. I just heard about shiki earlier today when looking at carta

  • @AB-gx5zj
    @AB-gx5zj 3 หลายเดือนก่อน

    Nice video, thanks. Gonna get back to svelte soon and your videos really help (also the non-svelte ones, e.g. this, css, ...).

  • @daleryanaldover6545
    @daleryanaldover6545 4 หลายเดือนก่อน

    It finally has its website.

  • @daleryanaldover6545
    @daleryanaldover6545 4 หลายเดือนก่อน

    It was okay before but with merging from Shikiji, it became much more awesome.

  • @lungarella-raffaele
    @lungarella-raffaele หลายเดือนก่อน

    I am not understanding how to do custom css. Has anyone a guide or some examples where I can see how to achieve this? I can only modify the syle from the transformers but when i try css i really don't know how to do it

  • @Nodsaibot
    @Nodsaibot 4 หลายเดือนก่อน

    very cheeky

  • @vinciarts
    @vinciarts 2 หลายเดือนก่อน

    wait, why is your cursor different? Is it Linux?

    • @JoyofCodeDev
      @JoyofCodeDev  หลายเดือนก่อน +1

      maybe it's maybelline

  • @Majiy00
    @Majiy00 4 หลายเดือนก่อน

    Do you have any examples of using this with animotion?

    • @JoyofCodeDev
      @JoyofCodeDev  4 หลายเดือนก่อน +1

      I'm working on a Shiki code block component for Animotion

  • @dc22199x
    @dc22199x 4 หลายเดือนก่อน

    The cli should be enough, no one would ever go down even the twoslash package, quite overkill.

    • @JoyofCodeDev
      @JoyofCodeDev  4 หลายเดือนก่อน

      speak for yourself

    • @abtix
      @abtix 4 หลายเดือนก่อน

      depends on use case. I can definitely see many use cases for twoslash