//UITextViewDelegate
- (void)textViewDidChange:(UITextView *)textView
{
if (textView.markedTextRange == nil) {
NSString *topicPattern = @"#[^#]+#";
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:topicPattern options:0 error:nil];
NSRange range = NSMakeRange(0, textView.attributedText.length);
NSArray *results = [regex matchesInString:textView.attributedText.string options:0 range:range];
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:textView.attributedText.string];
[attributedString addAttributes:@{NSFontAttributeName:sysFont(16)} range:range];
for (NSTextCheckingResult *result in results) {
[attributedString addAttributes:@{NSForegroundColorAttributeName :colorConversion(@"507daf"),NSFontAttributeName:sysFont(16)} range:result.range];
}