Latest 0.2.0
Homepage https://github.com/naoty/NTYSmartTextView
License MIT
Platforms osx , requires ARC
Authors

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;

Latest podspec

{
    "name": "NTYSmartTextView",
    "version": "0.2.0",
    "summary": "NSTextView with smart features",
    "description": "                       NSTextView with following smart featuresn                       * Smart indentn                       * Soft tabn                       * Auto pair completionn",
    "homepage": "https://github.com/naoty/NTYSmartTextView",
    "license": "MIT",
    "authors": {
        "Naoto Kaneko": "[email protected]"
    },
    "source": {
        "git": "https://github.com/naoty/NTYSmartTextView.git",
        "tag": "0.2.0"
    },
    "screenshots": "https://raw.githubusercontent.com/naoty/NTYSmartTextView/master/screenshot.gif",
    "social_media_url": "https://twitter.com/naoty_k",
    "platforms": {
        "osx": null
    },
    "requires_arc": true,
    "source_files": "Classes"
}

Pin It on Pinterest

Share This