MarkNoteView - highlight MarkDow

作者: MarkNote | 来源:发表于2015-12-11 22:24 被阅读233次

MarkNoteView

A UITextView category to highlight MarkDown syntax.

  • Set background color for code blocks
  • Highlight html tags
  • Highlight links and image tags

A simple demo has been provided in the code

ScreenScreen

Usage

  • Put a UITextView on you UI either by InterfaceBuilder or code
  • Copy and add all files under MarkNoteView sub folder into your project
  • Include the head file in your viewcontroller
#import "UITextView+MarkNote.h"
  • When your text changes, call updateSyntax method
- (void)textViewDidChange:(UITextView *)textView{
    
    [_textView updateSyntax];
}
  • That is it!

Feel free to check the demo app

App

MarkNoteView is used in my app MarkNote

Questions and feedback

Twit me @markmarknote https://twitter.com/markmarknote

相关文章

网友评论

    本文标题:MarkNoteView - highlight MarkDow

    本文链接:https://www.haomeiwen.com/subject/ykbyhttx.html