So ... this looks like Objective C code, not B4i. Where would I put it in my program?
#if OBJC
// Here fixed attributes are used. Could be expanded to be customizable
-(void) changeTextViewLinkAttributes
UITextView*) textView {
NSDictionary *linkAttributes = @{NSForegroundColorAttributeName: [UIColor greenColor],
NSUnderlineColorAttributeName: [UIColor lightGrayColor],
NSUnderlineStyleAttributeName: @(NSUnderlineStyleSingle)};
textView.linkTextAttributes = linkAttributes;
}
#End If