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

Add custom TagHandler for <code> tags to add monospace typeface #1149

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Sep 22, 2018

  1. Downgrade the html5 <pre><code> tags with html4 <tt>

    The textview supports formatting of a few built-in html tags,
    `tt` (teletype) is deprecated in html5, but for android this is still implemented
    
    Advantages of this `tt` formatting is that it respects newlines and whitespace,
    which makes code formatted comments on Hackernews better readable.
    
    Fixes hidroh#883
    DieBauer committed Sep 22, 2018
    Configuration menu
    Copy the full SHA
    78ecbfe View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2018

  1. Implement code highlighting with custom code Html.TagHandler

    Advantage over regex is that this handling only kicks in the moment the
    text contains such a <code> tag.
    DieBauer committed Sep 23, 2018
    Configuration menu
    Copy the full SHA
    877dc32 View commit details
    Browse the repository at this point in the history