You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Pygmentsやhighlightを使う Keynoteにシンタックスハイライトされたソースコードを貼り付けるには、RTFでフォーマットされたソースコードをペーストする必要がある。 Keynoteにソースコードを貼る - pirosikick's diary 上記ブログにまとめた内容が以前やっていた方法。CLIで変換してMacのpbcopyコマンドでクリップボードにコピーし、Keynoteに貼り付ける。 # highlightの場合 $ brew install highlight # file.jsの内容をRTFに変換しクリップボードにコピー $ cat file.js | highlight --syntax=js -O rtf | pbcopy # クリップボードにコピーしたソースコードをRTFに変換しクリップボードにコピー $ pbpaste | highlight --synt
Keynoteにコードを貼付けたいときなどに使えるTipsです。 Highlightというツールを使います。 1. Highlightをインストール Homebrew以外の方法は公式ページから探してください。
Highlight documentation Manual Plug-Ins Supported Languages Installation Integration Syntax Tests Regular Expressions LSP Client Service-Mode Syntax Samples Theme Samples Screenshots Screencast ChangeLog NewsV4 Migration Credits Git/SVN Wiki (Gitlab) Deutsche Dokumentation Highlight manual Content Overview Intended purpose Feature list Usage and options Quick introduction CLI options GUI options I
はじめに 以前から自分のブログに書いたソースコードが読みにくいと感じていました。他所のソースコードが読みやすいブログを眺めていたところ、 Solarized という有名な配色があることを知りました。 良さげだったので、このブログのソースコードの配色をSolarizedにしてみました。 以下のページを大変参考にさせていただきました。感謝です。このエントリはほとんど自分好みの配色に変更した記録を残しているだけです。 はてなブログのシンタックスハイライトの色を変更する - 素人趣味のWeb制作ブログ 設定内容 以下の配色にしました。Darkの背景色のデフォルト(Base03)だとコントラストが強すぎる気がしたので、一段階薄い色(Base02)にしました。 Purpose Class Hex Color Name Color 背景色 pre.code (background-color) #073
Unified and split diffs now feature syntax highlighting, which adds colors to your code to make its meaning and structure clearer. Now you can more easily understand the code that was changed in a commit, pull request, or review comment. See it in action at dotnet/corefx or your favorite repository.
192 languages and 496 themesAutomatic language detectionWorks with any HTML markupZero dependenciesCompatible with any JS frameworkSupports Node.js and DenoCurrent release: 11.9.0 #!/bin/bash ###### CONFIG ACCEPTED_HOSTS="/root/.hag_accepted.conf" BE_VERBOSE=false if [ "$UID" -ne 0 ] then echo "Superuser rights required" exit 2 fi genApacheConf(){ echo -e "# Host ${HOME_DIR}$1/$2 :" } echo '"quote
(Re-) Implementing A Syntax-Highlighting Editor in JavaScript Topic: JavaScript, code editor implementation Author: Marijn Haverbeke Date: March 2nd 2011 (updated November 13th 2011) Caution: this text was written briefly after version 2 was initially written. It no longer (even including the update at the bottom) fully represents the current implementation. I'm leaving it here as a historic docum
<script type="text/javascript"> // Say hello world until the user starts questioning // the meaningfulness of their existence. function helloWorld(world) { for (var i = 42; --i >= 0;) { alert('Hello ' + String(world)); } } </script> <style> p { color: pink } b { color: blue } u { color: "umber" } </style>
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く