Bulk remove '<i>' inside all '<blockquote>' using notepad++ - wordpress

I'm trying to bulk remove all that appear inside the from my WordPress Posts XML template. I have a huge file and since I'm changing of layout, all the and tags inside a quote should be removed, as the quote is already styled. How can I remove the tags without affecting the rest of my template?

You can make a search and replace (Ctrl+H) on your template file, using Regex mode :
Search for :
<blockquote>(.*?)<i>(.*?)</i>(.*?)</blockquote>
And replace by :
<blockquote>$1$2$3</blockquote>
EDIT :
This method will partially work for patterns like :
<blockquote>foo <i>bar</i> baz <i>qux</i></blockquote>
(ie. multiple <i> in a single <blockquote>). You just have to launch the search and replace several times, or use the recursive tag (?R) in your regex (not tested).

Open the file in notepad++
Select all <blockquote> sections
Press Ctrl+H to open the Replace dialog box
Find <i>
Replace with nothing
Be sure to click the 'In selection' checkbox
Click Replace All
PROFIT!

Related

Multiple editors in a Single Page

I want to achieve multiple editors on a single page. Like two editors in a single page. Do not want to use plugins; pure native coding.
CKEditor supports multiple inline as well as classic (contents in iframe) editors on a single page.
In both cases it is enough to specify path to ckeditor.js script on header page and CKEditor code will automatically:
change all div elements with contenteditable attribute to inline editors
"change" all textarea elements with class ckeditor to classic editors
Please also have a look at below samples and documentation links to get a better idea of how you can use multiple CKEditor instances on a single page:
http://nightly.ckeditor.com/17-11-11-07-04/full/samples/old/replacebyclass.html
http://nightly.ckeditor.com/17-11-11-07-04/full/samples/old/inlineall.html
https://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_framed
https://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_inline
EDIT:
Additionally you can use the replaceAll method which replaces all textarea elements which match your criteria. This method requires writing JS on HTML page.
Don't need to use a plugin.
TinyMce support multi-editor in one single page.
See documentation :
https://www.tinymce.com/docs/get-started/multiple-editors/

How could I remove text inside quotes in atom editor?

I came from vim. Its biggest win is commands like ci< when <this text is removed if cursor is placed inside angle brackets>
How can I do that in hackable editor for the XXI century?
You can do this using the vim-mode-plus plugin. It natively supports your example, and many other text-object style commands taken straight from Vim, e.g. all of these would work as well:
di<
da<
ca<
And it should work with ', ", (, and other delimiters, just like Vim.
There is a function that comes with the editor named bracket-matcher:select-inside-brackets that highlight everything inside the bracket (but not the bracket itself). You may then press backspace or delete button to remove the content, or any other button to replace the content. For windows, the default key combination is ctrl-alt-m.
If you are not using windows, or you may have accidentally overwritten the settings, you may open Setting > Keybindings and search bracket-matcher:select-inside-brackets. It should tell you what is the correct key combination.

Mediawiki Extension:RSS

The MediaWiki Extension:RSS (http://www.mediawiki.org/wiki/Extension:RSS) uses the plainlinks class to present the RSS feed link. I have tried all manner of searching, including trying to edit the MediaWiki:Rss-feed template to force the link to presented in non-bolded format.
Has anyone used this extension and can tell me how to change the fonts in the RSS link?
Thanks
As far as I can understand your question, you should be able to remove the boldface formatting from the RSS item titles by editing the page MediaWiki:Rss-item (not MediaWiki:Rss-feed) on your wiki.
What you need to do is two things:
remove the string ''' (MediaWiki markup for bold text) from either side of the title, and
remove the ; (MediaWiki markup for a list definition, which is also bolded by the default style sheet) from the beginning of the line.
That is, change the default content of the page:
; '''<span class='plainlinks'>[{{{link}}} {{{title}}}]</span>'''
: {{{description}}}
: {{{author}}} {{{date}}}<!-- don't use newline here -->
to this:
<span class='plainlinks'>[{{{link}}} {{{title}}}]</span>
: {{{description}}}
: {{{author}}} {{{date}}}<!-- don't use newline here -->

How to disable header on frontpage of rst2pdf document?

I am generating some PDF's and I would like to disable the header on the frontpage. I know there are built-in templates in rst2pdf and one template is called coverPage but I don't seem to be able to get it to work.
The manual is saying you should use a
..raw:: pdf
PageBreak coverPage
statement but that will insert a empty before the coverpage, so how can I have a coverpage without a header and without using the oddeven directive (I want to use the same header on all remaining pages).
Thanks for your suggestions!
That's how you change the stylesheet after the cover page. You'll need to create a custom stylesheet that specifies what is the format of the first page and then change the style for the rest of document. Have a look at chapter 15 of the manual.
Note: current accepted answer contains broken link (linked website has gone).
The correct answer is simple:
1) In you style-file define:
pageSetup:
firstTemplate: coverPage
2) Then in your template, when you want to start using header/footer add:
..raw:: pdf
PageBreak cutePage
Make sure cutePage has set header/footer to true.

Rendering XML attribute value in page

I am trying to render a complex XML document as webpage(FF only) using a stylesheet. In one of the tag the content itself is part of the a attribute value
<projectMember>
<Role roleType="CHANGE ADMINISTRATOR III"/>
</projectMember>
<projectMember>
<Role roleType="CHANGE ADMINISTRATOR I"/>
</projectMember>
I need to display the value of roleType in Firefox using css selectors. I dont want to use XLST or Javascript as modifying XML source is last option.
You might be able to use "content" and the attr css function.
To see a similar solution used to print the href of a link after the link in print media, goto http://www.alistapart.com/articles/goingtoprint/ and scroll down the page to the heading "Printed links"
it might look something like this in the end:
content: attr(roleType);

Resources