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

Added popup Syntax Selector #8

Merged
merged 5 commits into from Mar 28, 2018
Merged

Added popup Syntax Selector #8

merged 5 commits into from Mar 28, 2018

Conversation

Aecasorg
Copy link
Collaborator

In pasteview, a syntax selector picker has been added. It defaults to language set in options menu. If there's not a matching language that Hightlightr supports then it is set to let Highlightr automatically choose.

Partially fixed the background bug. On an iPhone SE the background image starts lower so you see top edge, however, I don't actually know if this will actually be like this on an actual phone. Not tested.

Changed the order around for main VC buttons. More logical perhaps but looks slightly worse on an iPhone SE. Should we keep or change back?

Let me know if you want any changes to the above.

Enjoy!
Henrik

…s, i.e. iPhone X. Note: On iPhone X, if you exit app and then press on app icon to enter it again, the background scrolling does not start again. Just static image. Needs investigating further.

Moved Done button on the Previous Pastes view to the right in order to conform to all other subviews.
…x. Currently is based on the pastebin.com supported languages, not Highlightr, so some syntax will not work.

Next step is to merge the Pastebin.com supported languages and the Highlightr supported languages with the Pastebin list being the master and if not available then it will reset to default or no syntax at all.
…match the Highlightr syntaxes and will highlight the code accordingly. If no match, then it will default where Highlightr will automatically choose the closest matching highlighter. Choosing None will turn off highlighter.
@jonluca jonluca merged commit 11a4805 into jonluca:master Mar 28, 2018
@jonluca
Copy link
Owner

jonluca commented Mar 28, 2018

Looks great! Thanks!

I’m open to suggestions on how to fix the scrolling background. We could either try something completely new and different, or try to fix it everywhere. Did you have anything in mind?

@jonluca jonluca self-assigned this Mar 28, 2018
Aecasorg added a commit to Aecasorg/PasteBinApp that referenced this pull request Mar 28, 2018
Merge pull request jonluca#8 from Aecasorg/master
@Aecasorg
Copy link
Collaborator Author

Aecasorg commented Mar 28, 2018 via email

@Aecasorg
Copy link
Collaborator Author

Aecasorg commented Mar 28, 2018 via email

@jonluca
Copy link
Owner

jonluca commented Mar 28, 2018

Looks good to me! Just tested it, it all works.

Also, can you not test it in the simulator? You should be able to build locally even without an Apple Dev account.

I also went through and reformatted some stuff just slightly, to maintain a more consistent style. You can see the commit here

Thanks again!

@Aecasorg
Copy link
Collaborator Author

Aecasorg commented Mar 29, 2018 via email

@Aecasorg
Copy link
Collaborator Author

Aecasorg commented Mar 29, 2018 via email

@Aecasorg
Copy link
Collaborator Author

Aecasorg commented Mar 29, 2018 via email

@jonluca
Copy link
Owner

jonluca commented Mar 29, 2018

Yes, I have the iPhone X and I'm running into that issue as well. I'm looking into it. I've also been getting some random crashes with typing in user and switching syntaxes, not really sure what it is. I'm pretty busy this week but I'll try to take a look soon.

And sure! What favor did you need?

@jonluca
Copy link
Owner

jonluca commented Mar 29, 2018

Hmm odd the error isn't happening for me anymore. Not sure what's up.

@Aecasorg
Copy link
Collaborator Author

Aecasorg commented Mar 30, 2018 via email

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.

None yet

2 participants