Questions tagged [highlight-chars]

12 questions
4
votes
2 answers

There's a way to use emacs like MS Word, to make text permanently colored, stylized, etc...?

I'm totally new to the wonderful world of Emacs. I started to use it some weeks ago and i'm find myself to use it more and more... I would like to use it not only as a code editor, but also as a word processor like MS Word, Apple Pages, etc,…
wing
  • 123
  • 7
3
votes
1 answer

highlight-chars and magit is conflicting

first time StackExchange user here. I'm having trouble with highlight-chars (probably font-lock) and magit. Enabling hc-toggle-highlight-* functions will remove the coloring from magit buffers. Possibly duplicate: Font-lock for strings messes up…
Seba
  • 31
  • 2
3
votes
2 answers

highlight-chars permanently

I am trying to highlight particular chars for use in C++ in emacs. I have found the package highlight-chars works very easily. I can use hc-highlight-chars command, it then prompts me for a set of chars and then asks for a face. However, it expires…
badger5000
  • 133
  • 3
2
votes
1 answer

How to use the highlight-chars.el package?

How can I use the highlight-chars.el package mentioned here (and here's its code) to highlight custom characters? Specifically, I'd like to highlight the unicode directional formatting characters for embedding right-to-left languages in a…
Evan Aad
  • 1,461
  • 1
  • 14
  • 29
2
votes
1 answer

Better than lib "highlight-symbol"

windows 10, emacs 26.1. To highlight symbol I use package highlight-symbol http://nschum.de/src/emacs/highlight-symbol/ Nice. But I need symbol "=" to be a separator. As you can see the test=this is highlight. But I don't like this. I need to…
a_subscriber
  • 3,854
  • 1
  • 17
  • 47
2
votes
1 answer

Jump to and highlight characters matching regex

How can I jump to the next character matching a regex (see example below)? And if possible, enable highlighting of all the matching characters in the buffer when I jump for the first time. [^\x20-\x7eéèëê] This article says how to do it for…
1
vote
2 answers

How to show invisible/problematic characters such as TAB and Narrow No-Break Space in an org-mode table?

Is there a way to indicate where you have an "invisible" character that's causing problems in an org-mode table? The character's likely a TAB, but for the general case I'd like to assume it could also be other characters, e.g. a "narrow no-break…
chr
  • 77
  • 6
1
vote
1 answer

Distinguish various hyphens: U+00AD and U+2011

According to the manual, emacs displays U+00AD (soft hyphen), U+2010 (hyphen), and U+2011 (non-breaking hyphen) with the escape-glyph face. Which is fine to distinguish them from the ASCII hyphen/dash/minus character, but I'd like to be able to…
maaartinus
  • 235
  • 1
  • 7
1
vote
2 answers

Syntax highlighting (in Emacs) for SQL code in log files

How can we highlight SQL code in some log files, with Emacs? Sample log file: [DEBUG][2016-05-26 09:04:51,714][FileHelper] - [realContextPath=[/server.xml]] [DEBUG][2016-05-26 10:24:22,369][DbConnectionImpl] - [DELETE FROM…
1
vote
1 answer

How to pass multiple arguments to hc-highlight-chars?

How do you pass arguments to a function using lambda? I have looked through: https://www.gnu.org/software/emacs/manual/html_node/elisp/Argument-List.html#Argument-List and https://www.emacswiki.org/emacs/download/highlight-chars.el The only examples…
Jonathan
  • 113
  • 3
0
votes
1 answer

Using general comment character used in programming languages

I am using highlight-regexp with a regexp pattern that includes the elisp comment characters ;;. How can I extend the pattern so that it adequately handle the general comment character for each language? (highlight-regexp …
Dilna
  • 1,173
  • 3
  • 10
0
votes
1 answer

Highlight single character at column 80

I am trying to highlight just a single character on a line when it is on the 80th column mark. I am using Doom Emacs, which did it on in on a previous Emacs version, but I updated my operating system, and I can no longer get it to work. To be…
Kyuvi
  • 101
  • 4