Как эффективно переключаться между умными и вертикальными кавычками в Notepad ++?

1005

Я редактирую документ .hmtl в Notepad ++, и мне нужно иметь возможность эффективно переключаться между вводом умных кавычек ('' “”) и вертикальных кавычек ('' ""). Как я могу это сделать?

Я хотел бы использовать умные кавычки при редактировании содержимого в теле, например:

“Lorem Ipsum Dolor Sit Amet, Concetetur Adipiscing Elit, Sed do EiusMod Tempor Incididunt U Labore et Dolore Magna Aliqua. Ut enim ad minim veniam, quis nostrud упражнение ullamco labouris nisi ut aliquip ex ea кассовый следствие. Duis aute irure dolor в репереендерит в завитке Velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, иск в виновном виновнике молли аним, т. Е. Лейборист ».

Я хотел бы использовать вертикальные кавычки при редактировании HTML и CSS, такие как:

<link rel="stylesheet" href="style.css" type="text/css" media="all" /> 

Кажется, Notepad ++ изначально (?) Использует вертикальные кавычки, поэтому мне не нужно прилагать никаких дополнительных усилий, чтобы напечатать их. Чтобы печатать умные цитаты, я копирую документ Word в Notepad ++.

Язык документа, который я редактирую в Notepad ++, - это HTML .

2
@miroxlav Если я правильно помню (потому что я давно не работал над редактированием своих веб-страниц), я использовал ALT + 0145/0146/0147/0148, чтобы делать умные цитаты раньше. Пожалуйста, предоставьте мне ваш метод, и я посмотрю, принесет ли он мне пользу. Спасибо! 8 лет назад 0

1 ответ на вопрос

0
miroxlav

If seeking for exact answer, then there is no way. Notepad++ does not have this functionality. Perhaps there's some less known Notepad++ plugin, but I really don't know about it.

But this is how I am getting access to special characters: using the following AutoHotKey macros you can map standard keyboard sequences into producing quotes or other character or sequences. Basically, it does comfortable replacement of one sequence for another. This isn't auto-recognition for switching quotes, but such a thing would require writing new Notepad++ plugin at least.

The AutoHotKey macros for quotes:

:O:;,::‘ :O:;'::’ :O:;,,::“ :O:;''::” 

Based on the above, type ;,,(followed by space or comma or newline to start replacing) and you will get .

Macro example apart from creating quotes:

::;td::<td></td> 

By the above example you can produce table cell <td></td> instantly by typing ;td. So macros are universal, not only for quotes. I'm using semicolon as first character of sequences, because typing plain td would obviosly have undersired effects when typing plain text. But you can choose anything else, e.g. ` (backtick).

Advantage: macros you defined now work across all your applications (unless you restrict them).

So the format is

::type-this::replacement :O:type-this::replacement 

after typing type-this, you need to type space, comma, newline, etc. With first form, those are preserved, with second mentioned form, that character is consumed.


2017-02 Update:

I realized that AHK Macro can be written to rotate between quotes.
Example:

" –(restart)→ " → ...

Let me know if you are still interested.

Похожие вопросы