Thursday, 31 March 2016

Adding HTML tags to selected text

Adding HTML tags to selected text

So lately I've had to to a lot of text prep for publishing on website, which requires me to add the HTML tags (mostly just H1, H2 and P) to the text.
I was wondering if it's possible to be able to select a text, and then keybind a command (I'm guessing
i'd have to macro this, possibly script?) to add chosen HTML to the selected text, at the start and end, respectively.

So, for example, i'd select a paragraph in Word, press Ctrl+Alt+P, and it the paragraph would have

Keys to the Problem Adding HTML tags to selected text

Download Error Fixer for Free Now

The following macro applies to the whole document but you could change ActiveDocument to Selection if you wanted to restrict it to the selected paragraphs
Sub TagParas()
  Dim aPara As Paragraph, sText As String, sOpenTag As String
  Dim i As Integer, rng As Range, iOL As Integer, aHL As Hyperlink
  Dim sCloseTag As String, sCloseTagH As String
  sCloseTag = "

In this method we will try to Boot in Safe mode with Networking and see if the error still persists.

  • Search "MSCONFIG" and Open.
  • Click on Boot Tab
  • Tick Safe Boot in Boot Option
  • Select Network.
  • Click Apply and OK.
  • Reboot your System.

Another Safe way to Repair the Problem: Adding HTML tags to selected text:

How to Fix Adding HTML tags to selected text with SmartPCFixer?

1. Click the button to download Error Fixer . Install it on your computer.  Open it, and it will scan your computer. The junk files will be shown in the scan result.

2. After the scan is finished, you can see the errors and problems need to be repaired. Click Fix All.

3. The Repair part is finished, the speed of your computer will be much higher than before and the errors have been fixed. You can also use other functions in this software. Like dll downloading, windows updating and print spooler error repair.

Related: How to Fix - 64g ssd with a 500g regular drive?,Allow Unhide Rows in Protected Workbook [Solved],[Solved] Get in Excel 2007 data from Access 2007 out of self-built Queries,[Solution] How can I temporarily disable 'service manager' to install Adobe flashplayer?,[Anwsered] When I try to watch a flash video, I am told occasionally that I don't have Adobe Flash.,Solution to Error: Black screen during boot sequence,[Solved] Can't restore Windows 7 64-bit from external hard drive,How to Fix - IE 11 Enhance Protect Mode reset issue with add-on's?,Solution to Error: Internet Explorer 9 update/install error - Error Code 80092004,Upgrading to IE 8 causes cookies to get deleted when starting IE [Anwsered],Solution to Problem: All programs try to start from windows component
,Troubleshoot:External Hard Drive not listed in Windows 7 backup wizard Error
,How to Fix Error - Getting an error "not connected to the internet" while trying to install Samsung Kies?
,How to Fix - Internet Explorer shuts down and reopens tab when attaching to email or uploading files.?
,Fast Solution to Problem: Sending Error Message
,[Anwsered] Thinkpad 8611 Boot,How to Resolve - Svchost Helper?,Fast Solution to Problem: L30 101 Driver Windows 7,Troubleshooter of Error: Io Device,How to Fix Error - Dell Laptop Code 39?
Read More: Adding and opening Favourites in IE 9,Adobe Setup Error 1402 \"Could not open key\" when trying to install CS4 [Solved],How to Fix - Added hyperlink to a row and used it for a week now can't open it anymore?,How Can I Fix - adobe flash player error.?,Troubleshoot:Adding multiple photos to email Error,a file called mDNSResponse.exe. is causing bonjour not to operate properly,what should I do?,A QUESTION USING THE "IF'S" Formula.,A continuos flashing window with which title is C:Windows\System32\cmd.exe, and has the following message: The syntax of the command is incorrect.,Acrobat compatibility issue and you tube problems____,ActiveX on IE 9 not loaded

No comments:

Post a Comment