These are indeed escape sequences which the terminal should interpret as orders to change the text color. Normally they shouldn't be used when the compiler is invoked from Emacs (the terminal type should be set to dumb, which should cause the compiler to refrain from using any escape sequence). There may be something wrong in your configuration that causes ...
load-theme-buffer-local.el (GitHub repository) is supposed to do what I tried to do, but do it the right way.
To use it with eww, install it and add
(lambda () (load-theme-buffer-local 'tango (current-buffer))))
to your init file.
PS: I cannot test this approach myself, so let me know if this works.
Yes, you can do what you want with #+ATTR_HTML. However, your HTML is incorrect. If you look at the output you will see <pre class="example" background-color="#eff0f1;"> but there is no background-color attribute in HTML. Instead, use this:
#+ATTR_HTML: :style background-color:#eff0f1;
This will generate <...
Here are a few minor modes that look like they could be tweaked to meet the needs of the original poster:
[No screenshot due to no *.gif support when adding links.]
There are also a few minor modes ...
You can use library Highlight to highlight a region using an overlay or text properties -- in particular, property face. To highlight the background, use a face that uses attribute background but not foreground.
If you use text property face then you can also copy properties from some text and paste them to other text. So if your definition changes and ...
That's exactly what you get with library cursor-chg.el.
Just turn on minor mode change-cursor-mode, and leave option curchg-change-cursor-on-input-method-flag with its default value of t.
The cursor color when an input method is used is controlled by option curchg-input-method-cursor-color (default value "Orange").
(If you do not also want the cursor ...
What you're looking for is the region face. Put this in your .emacs file and change #666 to any color you want:
(set-face-attribute 'region nil :background "#666")
You could also then change the font color to make it more readable. E.g. to white
(set-face-attribute 'region nil :background "#666" :foreground "#ffffff")
Sources: This Question answered by ...
I recomend you try nhexl-mode (install it from M-x package-install or M-x package-list). It does do what you want.
This said, hexl-mode almost does what you want, since it places the cursor right in front of the byte you want highlighted.
OK… wasn't aware of rainbow-mode, wich does exactly, what I intended. Of cource I found it after I posted question here ^^.
So the solution is:
M-x package-install RET rainbow-mode RET
To answer my question completely and enable it in all modes: I added
(define-globalized-minor-mode global-rainbow-mode rainbow-mode
(lambda () (rainbow-mode 1)))
You don't say what "this kind of block" means, or how your "blocks" were caused/created.
Anyway, it sounds like you are asking how to know which face is used for that text with the yellow background, so you can use M-x customize-face to change its appearance.
The answer to that is to put the cursor somewhere on that highlighted text and use C-u C-x =. The ...
gotham-theme is my port of a Vim theme. In the Vim world there's three different kinds of color palettes used for themes:
The original palette with an arbitrary amount of colors with the shades as the designer of the theme picked them. This one will only work correctly in a GUI instance (or if you're extra lucky and have 24-bit color support in both your ...
By default, Emacs opens files ending in .h in C mode. If you would like to open them in C++ (where private and public will be highlighted as keywords), you can add the following to your init file:
(push '("\\.h\\'" . c++-mode) auto-mode-alist)
Or (even better):
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
Alternatively, if you are comfortable with reading LaTeX markup, you might prefer to configure wikipedia to not use images for rendering math. This requires you to create a wikipedia account, then go to Preferences->Appearance->Math to select an option. I would recommend "Client-side MathJax", since this will render prettily in a browser that understands ...