Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Dreamweaver to find or replace

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to use Dreamweaver to find or replace, Xiaobian feels quite practical, so share it with you as a reference, I hope you can gain something after reading this article.

In the process of developing and building a website, we may encounter such a situation, when our website has been quite a part, but we still need to modify some details. At this time, it is impossible to change it completely manually. What should I do? These modifications can be facilitated by using Find and Replace in Dreamwaver.

Dreamwaver's Find and Replace feature is so powerful that you can even control the search process with a precise "query language" in its Find and Replace dialog box. The shortcut key to call up the "Find dialog box" in Dreamwaver is "Ctrl+H". The function of each input box is: the top "Find" item is used to indicate the search range. There are 3 options. The first item is to find in the current file. The second item refers to finding in the current Site. The third item is to find in the specified folder. If we select this item, click the folder button on the right to specify the folder. The following "Find" item is used to select the type of search. If "Text" is selected, it means that the search type is text (non-HTML code), and the other items are search in HTML code, advanced text search, and search containing Tag in turn; the input box on the right is to enter the content to be searched; the following "Replace" refers to what content to replace.

Let's give an example of how to use the lookup function. Suppose we want to replace "dreamwaver" with "Dreamwaver" in the body text. If we only use "Text" to find, we will

< title>

The word "dreamwaver" is also replaced, which we don't want. So we used "Advanced Text Search," setting the search criteria (the content to the right of the "+" and "-" buttons) to "Inside Tag" and "Font," meaning to find the text "dreamwaver" in the Font tag and replace it with "Dreamwaver." One thing to note is that the search level option must be selected as "Match Case," which means that the search criteria must match exactly, otherwise the case difference in the text will be ignored.

After setting, click "Replace All" to start the search and replacement process. After replacement, all replaced places will be displayed in the replacement information list. The small green dot in front of the file indicates that the replacement is successful.

So how do you implement search and replace with Tag? Suppose all images on our website have the alt attribute set (This attribute is not set only for background images and individual complementary corner images). However, since the "Border" attribute value of images is not set to "0" when making web pages, individual images appear borders when browsing, which affects the browsing effect. Therefore, the "Border" value of all images with "alt" value set to "0" should be set. However, in the case of many images, it is impossible for us to change them one by one. At this time, if you use Dreamwaver to include the Tag search and replacement function, you can easily solve the problem.

We first select the folder, and then set the "alt" attribute contained in the img tag and meet the "alt=any value" as the search condition, and then set the "Action" to "Set Attribute"," Border" and "0". The meaning of this setting is that the "Border" attribute of the qualified pictures is uniformly set to "0", and click the "Replace All" button. Soon, the search and replace is complete, and the image properties are modified accurately.

Need to remind is to search for replacement, the file is not operated in the edited state, otherwise there may be replacement errors.

About "how to use Dreamweaver to achieve find or replace" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report