Skip to main content
Inspiring
Aug 17, 2020 4:56 PM UTC
Answered

Best practice: avoiding inline styling/formatting (RH 2019, new UI)

Hi, Everyone.

 

In RH 2019, new UI, I'm trying to avoid inline formatting/styling as a best practice. But if I use the buttons in the toolbar to create, say, an unordered bullet list or a table, is that in-line styling? I ask because when I look at the code view, I don't see <span> tags around them. 

 

Thank you!

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Peter Grainge
    Peter GraingeCorrect answer
    Community Expert
    Aug 17, 2020 5:04 PM UTC

    Selecting a style is not inline styling. You can block inline styling in Preferences I think, if not in Project Settings. 

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.

    6 replies

    Inspiring
    Aug 18, 2020 4:08 PM UTC

    Nice tip, Amber. I totally get the need. 

     

    Thank much!!

    Translate
    Community Expert
    Aug 18, 2020 1:08 AM UTC

    Regarding naming, I would suggest thinking of the purpose for the styling and giving a name that reflects that. Otherwise in future you might change your red text to blue, but still be applying a style called "red". (Been there, done that. 😛  )

     

    e.g FieldName or LabelText, rather than Bold, TextSample, rather than Italic.

     

    (Sometimes it is *really* hard to find a good name. 🙂  )

    Translate
    Inspiring
    Aug 17, 2020 5:19 PM UTC

    I see. Makes sense if I block inline styling, I'll need some alternate way of performing common actions like changing text to red.

     

    Thank you!

    Translate
    Peter Grainge
    Community Expert
    Community Expert
    Aug 17, 2020 5:08 PM UTC

    You may need to create some classes such as .red to apply red to a paragraph.

     

    Translate
    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Inspiring
    Aug 17, 2020 5:08 PM UTC

    Thanks for clearing that up for me, Peter.

     

    And great suggestion to block inline styling. I'll check that out.

     

    Thank you!

    Translate
    Peter Grainge
    Community Expert
    Peter GraingeCommunity ExpertCorrect answer
    Community Expert
    Aug 17, 2020 5:04 PM UTC

    Selecting a style is not inline styling. You can block inline styling in Preferences I think, if not in Project Settings. 

     

    Translate
    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.