Hide HTML as well

Signor D's Avatar

Signor D

27 Jun, 2012 10:33 AM

Even if I really like MD, sometimes I have to use HTML, mostly to make my text accessible: use the lang attribute, abbr, acronym...
I would be great if FoldingText would hide HTML syntax as it already does with MD syntax, allowing me to keep focused on text.

D

  1. Support Staff 2 Posted by Jesse Grosjean on 20 Jul, 2012 08:27 PM

    Jesse Grosjean's Avatar

    I’m sorry but for now I think that would be to difficult… trying to detect which lines were html and which were not, etc.

  2. Jesse Grosjean closed this discussion on 20 Jul, 2012 08:27 PM.

  3. Signor D re-opened this discussion on 20 Jul, 2012 10:52 PM

  4. 3 Posted by Signor D on 20 Jul, 2012 10:52 PM

    Signor D's Avatar

    I thought you could at least allow the user the option to allow everything between chevrons: this way <acronym title="Institut National d'Histoire de l'Art" lang="fr">INHA</acronym> will be shown just INHA.

    D

  5. Support Staff 4 Posted by Jesse Grosjean on 24 Jul, 2012 06:53 PM

    Jesse Grosjean's Avatar

    I still don’t know that hiding would be a good idea. But in the next release I’ll add some pretty bare bones highlighting of HTML tags. Please try that out and let me know if it at least helps make HTML a little more palatable in FoldingText documents.

  6. Support Staff 5 Posted by Jesse Grosjean on 24 Jul, 2012 07:59 PM

    Jesse Grosjean's Avatar

    Ok, please try version 0.9.1 when you get a chance and see if that helps with the tags. With a custom theme you could now turn on tag hiding if you want (hide class .htmltag) though I still think that would be really confusing.

  7. Jesse Grosjean closed this discussion on 24 Jul, 2012 07:59 PM.

  8. Signor D re-opened this discussion on 25 Jul, 2012 11:45 AM

  9. 6 Posted by Signor D on 25 Jul, 2012 11:45 AM

    Signor D's Avatar

    I have downloaded 0.9.1. I see the new Highlight HTML tags function (and I like it), but I do not understand how should I turn on tag hiding.

    D

  10. Support Staff 7 Posted by Jesse Grosjean on 26 Jul, 2012 11:10 AM

    Jesse Grosjean's Avatar

    You could add something like this to a custom CSS theme:

    .htmltag {
        display:none;
    }
    
    .currentSyntaxBlock.htmltag {
        display:inline;
    }
    

    But in my mind that’s still asking for trouble. You’ll have no hint that any tag exists until you move your cursor into it. I just doesn’t work well. Instead you might try this:

    .htmltag {
        font-size:0.5rem;
    }
    

    That just makes the tag font smaller and works a lot better in my opinion.

    Jesse

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac