Tuesday, October 18, 2022
HomeWordPress Developmentcss - Easy methods to outline a particular character to vary the...

css – Easy methods to outline a particular character to vary the type of my inline code?


A few of my Persian weblog posts are about programming and naturally I’ve to put in writing completely different instructions again and again within the sentences. To ensure that the font to be distinct and the route left to proper, I’ve outlined one thing like this in my css file:

.incode { 
    font-family: monospace; 
    show: inline-block; 
    background: #ececec; 
    route: ltr; 
    text-align: left; 
    padding: 0px 7px 0px 7px; 
}

After which I exploit it within the basic editor and in my sentences as:

<span class="incode">code goes right here</span>

However it’s lengthy and it slows down my writing pace. Is there a option to outline a particular character as an alternative of writing the above line? I imply as an alternative of the above line, I write one thing like
“code goes right here” (putting the inline code in double backticks) to have the identical impact?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments