5
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Excel内の文字列に正規表現で色をつける

Posted at

Excelでソースコード張り付けたけど、コメントだけは目立たない色に変えたい、とか、強調したい単語に色を付けたいことはありませんか?
簡単な色付けなら置換でできますが、少し複雑になるとExcelだと厳しい状況だと思います。
ということで、「正規表現で色をつける」ためのアドインexcel-regex-colorizeというのを作った(≒作ってあった)ので紹介してみます。

これは何?

Excelのアドインで正規表現で色をつけることができます。
Excel 2010で動作確認してますが、たぶんExcel 2013以降でも動くと思います。

で、どういう動き?

こんな感じです。

demo.gif

例えば、Perlのソースコードのコメント部を灰色にしたい場合、RegExpに#.*と入力して灰色にすると良いと思います。
また、正規表現ではないですがRegExpに\-とすることで抹消線を付けている個所に色を付けることができます。
こちらも、灰色とかにして目立たなくしたり、とかで幸せになれるかもしれません。

ダウンロード

以下からダウンロードできますので、良かったら試してみてください。

5
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?