Writing a syntax highlighter

后端 未结 7 985
故里飘歌
故里飘歌 2020-12-23 10:28

I was hoping to write my own syntax highlighter for a summer project I am thinking of working on but I am not sure how to write my own syntax highlighter.

I know tha

7条回答
  •  盖世英雄少女心
    2020-12-23 10:40

    A good start to one approach for this is the Udacity course CS262. The title is building a web browser, but really the class focuses on exactly the problems you are looking for - how to parse and lex a set of text. In your case, you'd use that info for highlighting. I just took it and it was very good. The course is "over" now, but the videos and practice problems/homeworks are still up and available for viewing.

提交回复
热议问题