How to add some text above the special Latex arrow `\hookrightarrow`? - latex

I wanna add some text such as true:coin above the special Latex arrow \hookrightarrow.Any methods I tried is doesn't work.
I use Latex in the markdown editor in web browser.
Both
$$\hookrightarrow^{xxx}$$
and
$$\hookrightarrow[]{xxx}$$
isn't work.
I want the result is that the xxx is abolve the arrow \hookrightarrow.

I am sorry i get it.
Using $$\xhookrightarrow[]{true:coin}$$.It is useful.

Related

Multiline find & replace in Xcode

I would like to replace
import Quick
import Nimble
with
import XCTest
Is it possible to do it in Xcode find and replace or I have to use Xcode regular expressions?
I have tried: import Quick\nimport Nimble but it doesn't work as expected
You can find for multiline text and replace it (cmd+opt+f) with new text. make sure to copy and paste multiline text as it is written on the Xcode file.
I don't know how you tried and failed. But I tried and it worked. Procedures as bellow:
First select and copy the lines you wanna replace.
Shift+Option+CMD+F to open Find navigator in Xcode, then CMD+V to paste the multiline text.
You can also choose a scope for search. Then input the new line.
THE FAST WAY:
You can simply copy both lines dragging with the mouse and the paste them on find textfield.
THE COOL LEEMUR'S WAY:
But also there is a great way to find expressions:
Press CMD + f
A find field will appear on the top of the editor.
At the right side of the find field there is a "+" sign
Press "+" will display a list of special characters
Its very useful, you can make something similar to regular expressions, mixing literal text with patterns
You can try to find the expression just in the current file writing it in the top find field. Or you can try to find the expression in the whole project using the Find Navigation tab on the left. As you will see the expression will appear there also.
Moreover if you want you can use an actual regular expression to find something if you press in the word "Contains" at the left of the "+" sign. It will show a list where you can select the option "Regular Expression"
If you want to find text select "Find" at the left of the editor. If you want to replace it, select "Replace" and a new field will appear below.
You can replace the text with another pattern, using some of the words that you used to find the text. If you double clic on "Word1" at the find field it will appear at the replace field.
In this example I'm changing the order of two words around MyText

execCommand("bold") when text is between symbols

I want to create a very simple markdown editor with contentEditable and execCommand. I can only find examples where you select a text and press a button to make the selected text bold (or other stuff). But I would like to be able to write **bold text** and that it automatically makes the text between ** bold. Same like the editor from stackoverflow, but I don't want the ** to be removed. They should still be there, but maybe in another style. I don't know how to do it. Do you do that with Regex or how?

Is it possible to add a vertical line beside a paragraph with UITextView/UILabel?

I'm looking to build a UITextView/UILabel that allows for quotes to be distinguished visually. The most common way to do this is seemingly a vertical line to the left of the quoted portion.
An example would be [this article] from Daring Fireball, notice the line by the quoted portion:
How would I go about accomplishing this with UITextView/UILabel? I can figure it out in UIWebView using CSS, but unfortunately UIWebView simply won't work in this project (due to these quotes being in numerous UITableViewCells). Similarly manually indenting paragraphs wouldn't work as it could appear anywhere in a block of text, perhaps the third paragraph, so I wouldn't necessarily know where to put it.

Replace keywords by images in TextField

I have some textfield with text like "Click #button1, then #button2". Have you got any idea how to replace keywords by images ? I must do it in AS2 :/ I know there is htmlText in textField, but useing it I can only use one image, and image can only align left or right site.
Very advanced stuff. I can tell you there is no 'out of the box' solution like using html text fields or something similar. Especially if you want to mimic nearly html behaviour you have to code advanced routines that can : 1. recognize your keywords. You should google for tokenizers and 2. layout textfields according to occuring images and textblocks. Again, thats advanced!

How do you add a superscript character into a Powerbuilder textbox?

Is there any way to do this in the Powerbuilder properties window for a datawindow's textbox?
That kind of depends on how you define "textbox", but in general the only way to mix normal and superscript text is with a richtext control. In PB 11.5, you can even use richtext as a column style.
Good luck,
Terry.
Yes. For the text control, you must select a font that has superscript characters (Arial does).
Go into the Windows Character Map (usually in the start menu under Accessories->System Tools) and select your font.
Then go to the superscript character that you want to place in your text control. Click it and then click the Select button to place it down in the character map text box.
Then click the Copy button.
Now you can return to PowerBuilder and paste this value into the properties window text area.
As long as the same font is selected for the DataWindow control as was selected in the character map it should show as your superscript character.
This same techinque can be done to include any of the Wingding type characters as well.
We ended up using two separate text fields. It's a butt-ugly solution, but it works. The superscript field has a smaller font and is nudged a little higher up.
I think newer PB versions support superscripts.
Thanks for the help.
Glenn
If you go to the character map - when you select your character it will show the keys to enter this character on the bottom right of the window.
Example : in Arial font - the ® (registered) mark is Alt + 0174
To enter these, turn your numlock on, hold the alt key down, and type 0 1 7 & 4 then let up on the alt key. You have to use the number keys on the number pad to do this the ones on the top of the keyboard dont work.
You can then enter your characters directly or do something like this :
ls_key = '®'
Actually I stumbled across a simpler solution. I copied and pasted a portion of the text from a pdf into the text property of a datawindow text contol. The superscript character simply pasted in. So I'm guessing that Dougman's solution would work too.
Example:
"™Trademark used under..."
Note: I'm using PB 9.0.1
Thanks for all the help,
Glenn

Resources