All Projects → naoty → NTYSmartTextView

naoty / NTYSmartTextView

Licence: MIT License
NSTextView with smart features

Programming Languages

objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

NTYSmartTextView

Version Platform

Screenshot

Features

  • Smart indent: Keep the width of indent when breaking line.
  • Soft tab: Input spaces instead of tabs by entering TAB key.
  • Auto pair completion: Automatically complete closing braces and quotes.

Installation

NTYSmartTextView is available through CocoaPods, to install it simply add the following line to your Podfile:

platform :osx
pod "NTYSmartTextView"

Usage

At Xib, set the custom view of a text view to NTYSmartTextView. By default, above features is enabled. If you want to change th default configurations, change properties as follows.

Smart indent

self.textView.smartIndentEnabled = NO;

Soft tab

self.textView.softTabEnabled = NO;

// You also can change the width of soft tab from 4.
self.textView.tabWidth = 2;

Auto pair completion

self.textView.autoPairCompletionEnabled = NO;
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].