Posts

Showing posts with the label HTML

Emacs Org Mode code blocks with and without colors

Image
Emacs Org Mode code blocks with and without colors Table of Contents 1. Coloring the code blocks in Emacs Org Mode 2. How to install the htmlize library 3. Colored Code Examples 3.1. First example: HTML code with and without colored syntax. 3.2. Second example: LaTeX code with and without colored syntax. 3.3. Third example: Ruby code with and without colored syntax. Figure 1: Photo by Sharon Pittaway on Unsplash 1 Coloring the code blocks in Emacs Org Mode Emacs Org Mode is an excellent environment to develop any kind of argument. If you need to display blocks of source codes in Org Mode, it may be very useful to know that there are two basic versions for displaying them. The first one is the monochromatic visualisation mode. In order to obtain this visualisation you must just wrap your code block into the tags #+BEGIN_SRC and #+END_SRC . This is already a good way of displaying source codes. But you can get a prettier look by...

Vim, changing a tag around a word in HTML mode

Image
In Vim HTML mode if you need to surround a word with a tag you can effectively use vim.surround with the cursor anywhere in the word using the following string: ysiw followed by the specific desired tag.

It's easy to say TAG

Image
What's a tag? ... Can I tag you?... What's the tag for... Tag. Tag. Tag. Everywhere in the virtual world you can find that simple word. Have you ever thought about how many meanings can have that simple word? Ie: when you say tag have you always been clear its meaning in any context? This article mentions only a few of that meanings. And it isn't a tutorial for those meanings but it's only a simple review of them. Tag in Evernote You can store many thousands of notes in Evernote. The problem is not to store the notes but to search them. Tags can really help you to navigate through your thousands of notes. Tags, in the Evernote context, are text labels superimposed to the notes. You can search the notes using a single tag, regardless of the note content. You can use multiple tag combined with booleans operators.You can also mix tags and text in your researches. Then tags are elements to elements to bring order into chaos. Fig. 2 - Tags in Evernote Tag in social network...