<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hirokiky</author_name>
  <author_url>https://blog.hatena.ne.jp/hirokiky/</author_url>
  <blog_title>Make組ブログ</blog_title>
  <blog_url>https://blog.hirokiky.org/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>現在のhighlight.jsではこのstateを引き回す書き方は非推奨となっており、今後廃止される予定です。 highlight.js というコードハイライトをするJavaScriptのライブラリーがあります。 highlightjs.org このライブラリーで、「行ごと」にHTML要素を分割しつつハイライトする方法を説明します。 highilght.jsの基本的な使い方をおさらい highlight.jsは基本的に関数を呼ぶだけでコードハイライトができるので便利です。 以下の例では &quot;# Heading 1&quot; という文字列をMarkdownとしてハイライトしています。 import hlj…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hirokiky.org%2Fentry%2F2019%2F09%2F04%2F193222&quot; title=&quot;highlight.jsで行ごとに区切りつつハイライトする - Make組ブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-09-04 19:32:22</published>
  <title>highlight.jsで行ごとに区切りつつハイライトする</title>
  <type>rich</type>
  <url>https://blog.hirokiky.org/entry/2019/09/04/193222</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
