Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line number support #21

Closed
wants to merge 2 commits into from
Closed

Conversation

sebastianmach
Copy link

I've added line number support for the issue #15 .
ruddfawcett recommended the https://github.com/illyabusigin/CYRTextView project which already has a good line number support.
I implemented the class which is responsible for the line numbers (CYRLayoutManager).

Line numbers can be enabled or disabled with the drawLineNumbers property in the JLTextView class.
The Colors of the line number column at the left side can be modified using the JLGutterBackgroundColor and JLGutterLineColor key in a JLTokenizerTheme.

Sebastian Mach added 2 commits August 22, 2014 10:15
Fixed wrong height of keyboard when the device is in landscape.
Added Line number support with implementation sourced from
https://github.com/illyabusigin/CYRTextView and original implementation
sourced from: https://github.com/alldritt/TextKit_LineNumbers
@Anviking
Copy link
Owner

Nice, thank you! Two minor things in the demo project: If we're going with the default theme you might as well change the barStyle to default. And, even though the navigation-bar-title is redundant I think "Toggle Line Numbers" should be changed to something shorter. (Just "Line Numbers"?)

In some way this PR set the default menlo font to nil in the example project, but it is fixed with cbb3b89.

@ezhes
Copy link

ezhes commented Oct 12, 2014

Might as well close this request because now that the build is mainly swift, changes are useless.

@Anviking Anviking closed this Oct 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants