Alternatively, this grep search and replace would work... Search: (.*)\r
Replace: <p>\1</p>\r If you only perform it on the selected text, it'll give a bit of control over how greedy it is. If your paragraphs are separated by two returns, then add another /r at the end of the search and replace strings. Dennis Dennis Whiteman FastPipe Media, Inc. http://www.fastpipe.com/ On Dec 5, 8:25 pm, yozloy <yoz...@gmail.com> wrote: > Hi, Everybody! > I'm working on a project to convert some text to html. > > what I got is many paragraphs, It makes sense use some functions to > add <p> at the beginning of each line and</p> and the end of each > line. > > any advice? -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group.