Jump to content

Topic on Extension talk:WikiEditor/Archive 2

newline for search/replace

5
ChongDae (talkcontribs)

When search and replace, can I insert newline? '\n' seems not to work for replace text.

Utar (talkcontribs)

Wikitext is not just a string so common "\n" doesn't make new lines here. Use HTML tag "<br />" instead of "\n" to make a new line in the article.

He7d3r (talkcontribs)

What if the intention is not to make a new line in the displayed text, but only in the wikitext?

Seppl2013 (talkcontribs)

An example would be to search & replace * bullet1 *bullet2 *bullet3 *bullet4 *bullet5 - search "*" replace "\n*" unfortunately does not work - doing this manually is very tedious so adding the capability to insert tabs newlines and other special characters would be really helpful.

Wqnvlz (talkcontribs)

Now tracked in phab:T281326.

Reply to "newline for search/replace"