最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Syntax highlighting in a textarea? - Stack Overflow

programmeradmin1浏览0评论

I'm looking for a syntax highlighter tool that enables you to highlight selected code in a textarea, and to select the programming language. I would like to select code, then choose the language (java or ruby..).

I tried the ckeditor syntax highlighter plugin but didn't like it.

I'm looking for a syntax highlighter tool that enables you to highlight selected code in a textarea, and to select the programming language. I would like to select code, then choose the language (java or ruby..).

I tried the ckeditor syntax highlighter plugin but didn't like it.

Share Improve this question edited Nov 26, 2015 at 14:27 ROMANIA_engineer 56.8k30 gold badges210 silver badges205 bronze badges asked Feb 4, 2014 at 6:46 user3242743user3242743 1,8615 gold badges23 silver badges33 bronze badges 1
  • This alexgorbatchev./SyntaxHighlighter is used by Oracle (docs.oracle./javase/tutorial/displayCode.html?code=https://…). – ROMANIA_engineer Commented Nov 26, 2015 at 14:26
Add a ment  | 

2 Answers 2

Reset to default 2

Ace and CodeMirror are two of the most popular, used in browsers dev tools (Firefox/Webkit) and GitHub Gists, etc.

There are most popular syntak highlighting tool:

EditArea, CodePress and CodeMirror

发布评论

评论列表(0)

  1. 暂无评论