How to highlight number phone in topic

AI-generated summary

The user thaidb asks how to highlight phone numbers in a topic and make them clickable for calling on mobile devices. codinghorror suggests whitelisting the tel: URI scheme, clarifying that the issue isn’t related to programming language syntax. dax and riking confirm the correct setting is allowed href schemes, where tel should be added. Mittineague explains how to style tel links using CSS attribute selectors like a[href^="tel"], and thaidb acknowledges the guidance, seeking further clarification on implementation.

Hello, I wanna highlight number phone in topic

Now, what i add to here? in library We're not a CDN - highlight.js i dont see numberphone number

i wanna Result

The second question, i wanna when user touch in it (call number) will auto open phone call in android or ios, how can do?

I think you have to whitelist the tel: URI in the site settings

https://www.ietf.org/rfc/rfc3966.txt

For having RFCs read aloud, call <a href="tel:+1-555-438-3732">1-555-IETF-RFC</a>

Don’t have tel @codinghorror on select

I think the site setting you are searching for is allowed href schemes

You are looking in the wrong place, at the wrong setting. Those are programming languages. A telephone number is not a programming language.

Other way? Who can help me? Or can build a plugin for me?

Search in the settings for allowed href schemes and add tel to the list.

Only Highlight not effect when i insert code:

<a href="tel:0938620880">0938620880</a>

What is the CSS are you using that targets links having href attribute values that begin with “tel”?

I don’t know, How do i know that? Thank!

Sorry for the delay. Did you make any progress on this?

For example, if you wanted all “tel” links to be styled, the selector could be like

a[href^="tel"] { 
/* styles go here */ 
} 

* read the documentation to understand the what does what.