Use rst-class within rst replace or alternative? - replace

Good morning everyone, I'm updating a documentation and I'm trying to add icons using fonts.
I've reached the point where if I type:
.. rst-class:: n-icons n-face
the icon will correctly display within my docs.
I'm now trying to combine this syntax with the substitution syntax so it can be retrieved with a simple placeholder (e.g. |n-face|)
Unfortunately the following syntax is not valid:
.. |nu-face| rst-class:: n-icons n-face
If anyone have any clue how to achieve this (even using other methods) I'll be super thankful. :)

Related

error with inserting image into book down book

i'm trying to insert an image into my gitbook themed bookdown book, but it doesn't seem to be working. I've used the code: knitr::include_graphics("https://i.imgur.com/uy6ePN0.png"). However, instead of putting in my image, it instead shows me the attached screenshot. Am I doing this wrong?
Not sure what's going on there (you may want to include a larger code snippet), but since you are not doing anything special, simple Markdown syntax should do:
![boolean operators](https://i.imgur.com/uy6ePN0.png)

Is there an example of a multiline text field in GTK+3 written in c++ without using css?

I'm having trouble figuring out the basic multi-line text field stuff in GTK+3. I was hoping someone could help me out with a simple example with no css formatting. I've done some googling and haven't found anything which I wouldn't have to deconstruct to get at the answer. Thanks.
Alright, I figured out how to do it.
GtkTextBuffer *textBufferName = gtk_text_buffer_new(NULL);
GtkWidget *widgetName = gtk_text_view_new_with_buffer(textBufferName);

Can I use a variable as a text property when calling class window?

I have a child object class window with a parameter regexptitle, so text being changed dynamically depending on the regular expression. I need to check if this window is opened and active using variable. I tried to put there string but it didn't help. Please help me find a solution.
Example of code repeated:
If Window("Excel").Window("Prompts for Project Analysis"). Exist Then ...
If Window("Excel").Window("Prompts for Engagements"). Exist Then ...
Assuming I read your question correctly, you should be able to achieve the goal using descriptive programming with this:
If Window("Excel").Window("regexptitle:=Prompts for.*"). Exist Then
Or if you have at least one version of the window learned in the object repository, add the regexptitle property to the test object details under Description properties, set it to a regular expression and set its value to be "Prompts for.*" - this will cause UFT to recognise all windows of this class with a regexptitle beginning "Prompts for" as this object (assuming the other recognition properties match up as well, and you get to use the OR-friendly object name in your code.
Let me know if that works for you, or if you need further help.

emacs flyspell disable for custom latex macros

I have the following LaTeX code which has some custom macro's and environments which i would like to exclude from flyspell.
Some normal text
\begin{customenv}
Please dont flyspell-this
\end{customenv}
again some normal text (please flyspell this) and some \customcode{dont-flyspell-this}.
I know I need to write a function to pass to flyspell-mode-predicate but I'm haveing some trouble getting it to work for both the \customcode and the \begin{customenv} and \end{customenv}.
Any suggestions are welcome.
Update:
It seems i can set the following:
(setq flyspell-tex-command-regexp
"\\(\\((\\(begin\\|end\\)[ \t]*{\\|\\(cite[a-z*]*\\|label\\|ref\\|eqref\\|usepackage\\|documentclass\\|customcode\\)[ \t]*\\(\\[[^]]*\\]\\)?{[^{}]*\\)\\|\\\\begin{\\(customenv[1-9]*\\)}\\(.\\|\n\\)*\\\\end{\\(customenv[1-9]*\\)}\\)")
This seems to work for the \customcode{stuff} but it still doesn't skip the text in customenv

paste code with syntax colors and alignment

I am looking for some blog site where i will be able to directly paste c++ code examples
in my publishes and see the code with all the alignments and colors like i see it on pastie.org.
I need all those things be made automatically because i don't know HTML and can't make by myself the code changes.
Get wordpress + WP-Syntax.
You won't be able to "copy and paste" the code directly, but you'll have to wrap it like this:
<pre lang="c++">
CODE GOES HERE
</pre>
I use this JavaScript for syntax highlighting in blogger. It's very easy to use.
The key feature of above highlihter is that script permanently hosted on http://softwaremaniacs.org/, so that make it possible is to use script on blogger.com.
Another one nice syntax highlighter could be found at code.google.com (it could be integrated in blogger.com).
(source: googlecode.com)
I use the "Online syntax highlighting" at http://tohtml.com
Paste your code in the text box there, select the programming language and color scheme and it will generate a webpage with your syntax highlighted code. Copy and paste that into your blogger editor and you are good to go.