Atom creating double angle brackets - element

Why does my Atom makes double brackets when I enter auto input on, I have installed packages for Atom.
double brackets

There is no need to type the brackets. Just type what you want to do, for example script and it will create the following code:
<script type="text/javascript">
</script>

Related

How do you find unicode characters in VSCode?

The Julia extension for VSCode makes it nice and easy to use Unicode characters with latex-like syntax. For example if I want a variable named with the symbol for pi in a unicode-aware language, I can just type \pi<tab> and get the symbol for pi!
But I can't figure out how to search for these characters. The find boxes don't seem to do the same tab-completion on latex-like syntax.
Is there something obvious I'm missing?
This worked for me:
Write \pi<tab> in the editor which will convert it to the symbol
π (you can also do \pi<enter> or \pi<mouse-click first item in drop-down>).
Copy the symbol π from the editor and paste it into the find box
(Ctrl+F) and press enter.

VS Code weird pasting

I'm building my site with Hugo and I've noticed weird behavior of VS Code when pasting snippets of codes like:
the bug displayed
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}">
The first line is typed by hand and it works, the second line is pasted, and as you can see VS Code treats this code differently and it doesn't work. It similar to this:
bug 2 displayed
<meta charset="utf-8">
It breaks the code and won't let the site to render. I have Format On Paste turned off. I'm pasting the snippets from a .epub ebook - Is there a way to paste without any format? Similar to what you can do in Google Docs (ctrl + shift + V)
They most likely are the quote characters that look like the ".
Just delete the characters and replace them with " and see if that fixes the problem.
Some e-books use a formatting tool meant to be used in novels and it replaces the " with the quote characters as if John says: ”BlaBlaBlaBla“
To better see the difference you might try and use a different font that has different glyphs for these quotes.
To replace the Double Quotation Marks (U201C and U201D) use extension Replace Rules
Add to settings.json
"replacerules.rules": {
"Quotes": {
"find": ["”", "“", "‘", "’"],
"replace": ["\"", "\"", "'", "'"]
}
}
Execute command: Replace Rules: Run Rule...
And select: Quotes
If you first select part of the file only those parts are searched and replaced.
If needed you can also replace the Double Prime (U2033 and U2036) characters. But I haven't seen any eBook that uses them.

Remove placeholders in libreoffice formula editor

I am trying to use the libreoffice formula editor to add some formulae to drawings in libreoffice draw.
However, whenever I want to enter a formula that LO thinks is wrong it places an ugly upside-down question mark or a box with nothing in it.
MWE:
%sigma^+
I want to denote the light polarization to be right-circular polarized, hence there should be nothing behind the + sign. However, LO decides a + sign should be followed by something and adds in an ugly placeholder.
In LATEX I would write
\sigma^+
and be done.
How do I get rid of the placeholder?
You should type it with double quotes, that is
%sigma^"+".

How to search for this string using regular expressions in Eclipse?

I am trying to find and replace this lines:
<div id="fixed_bottom"></div>
</div>
<jsp:include flush="true" page="../includes/footer.jsp"/>
with this:
<jsp:include flush="true" page="../includes/footer.jsp"/>
<div id="fixed_bottom"></div>
</div>
And I do not know how to find them, because there are two line breaks in the sentence.
Any help would be appreciated, thank you so much!
\n or \r\n indicate line break in a regular expression depending on what OS you are on. See http://www.regular-expressions.info/reference.html for more help on regular expressions
If you are using the built in Eclipse "Search File" with the regular expression box checked it will build the search string for you (if you had it highlighted before you opened search box). Note if you have to check the regular expression box you need to close the dialog and re open to get it to refresh. From there you can see Eclipse uses the somewhat odd \R for newlines.

how to fold only functions, methods in notepad++

I like the way netbeans folds functions and methods automatically when opening the file. I use notepad++ as well but when I use folding it will fold everything including html, if else conditions and functions. I would love to have the option to fold functions only. Does anyone know any plug-in that does that or maybe there is a setting somewhere in notepad++ that I missed.
Thanks
There is a level shortcut: ALT (1-8) to fold and ALT+SHIFT (1-8) to Unfold
It folds everything in the same level:
level 2
<html>
<head>
</head>
<body>
</body>
</html>
Source.