GitXplorerGitXplorer
s

NLTextView

public
44 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
c463097a80dea38672e956bd157c5be81623b04c

Merge.

committed 11 years ago
Unverified
0907513a0b89677377c2faa9a498d7121a84f00c

Add example

committed 11 years ago
Unverified
3376ac481f47d60d0b691faa4e2343badab31626

Update README.md

committed 11 years ago
Unverified
6a7c4479284799aa7857afa0d36fac2f1dc18ae0

Create README.md

committed 11 years ago
Unverified
a95bc06cb52343cae6a15bf93df61cbded99588b

Initial Implementation

committed 11 years ago
Unverified
db3fcbdd52c50e7eccb2ba48e8fced816543c10f

Initial Commit

committed 11 years ago

README

The README file for this repository.

NLTextView

An UITextView with Syntax Highlighting and Pan-Gesture Navigation / Selection

Gestures

The cursor can be navigated by panning left or right over the text view. To create a selection, or expand an existing one, a pan-to-zoom gesture can be used.

Syntax Highlighting

Syntax highlighting is controlled by the properties highlightDefinition and highlightTheme.

highlightDefinition is a mapping of hightlight identifiers to highlight regular expressions. For example:

@{@"number": @"[0-9]+",
  @"word":   @"[a-zA-Z]+"}

highlightTheme is a mapping of the same highlight identifiers to UIColors. For example:

@{@"number": [UIColor redColor],
  @"word:    [UIColor greenColor]}

By default, a nice highlighting theme is included and the highlight definition is read from a file in the bundle called Syntax.plist.