Using notepad++ find in files thing to replace a tag

I have

<h3 style="display:inline;">System Architecture</h3>

peppered all over my site (like 200 pages)
and want to replace it with

<h2 style="display:inline;">System Architecture</h2>

the text inside changes though. How do I use that tool to do it?

Do you use h3’s in other instances?

If not, you can just search/replace on




yes I do (which is why im changing em to h2)
But that a unique style for the tag though so is there a way to search

<h3 style="display:inline">\*</h3>

You can use regular expressions, so if you can build the expression, you should be able to use it.

But instead of doing that, do you REALLY need the element to be an h2 for semantic reasons, or are you just trying to increase the font size using browser default behavior? If it’s just for the font size, why don’t you do a mass search/replace of the whole text and change it to a class that you can style to your hearts content? It’s going to be a lot less burdensome in the long run…

<h3 style="display:inline">


<h3 class="inlineheading">

First thought: Time to streamline your site.

I agree with Dave’s point, though… I am hesitant to suggest making an h3 look like an h2, for readability concerns.

1 Like

If you’re using headings for font sizing, you’re using them wrong. They are used to show the importance of the heading, H1 being the most important, H2 slightly less important and so on.

How they display is completely a manner of styling. You can make H6 look bigger than H1 - doesn’t necessarily make sense, but you can. But semantically, there should be a purpose to which heading element is chosen.


which… you’re overriding by reusing h3? Basically you’ve proven my statement :stuck_out_tongue:

1 Like

Huh? I don’t follow.

I specifically asked the OP if he was changing to an H2 simply to use the base browser behavior to get a bigger font size. If that’s the case, then I was arguing there was an easier way.

However, if there is a semantic reason to have the H3’s changed to H2, then by all means, he should do so.

But considering the H3s are styled as display:inline, I’d guess that it’s more a text size issue, which is NOT a significant right reason to change an H3 to an H2.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.