Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
How can I view alternate mime content in Wanderlust?
All my mails are coming through as the HTML version, and sometimes I'd rather see the plain text version, even though I don't want to lose the ability to see HTML version altogether.
I have (in ~/.wl)
(setq mime-view-type-subtype-score-alist
'(((text . plain) . 4)
((text . enriched) . 3)
((text . html) . 2)
((text . richtext) . 1)))
to set the default priorities (I like plain text better, but just change the values if you want html most of the time).
Then, when I want to see the alternate version, I display all the message parts with (in summary buffer)
C-c m runs the command wl-summary-toggle-mime-buttons
Which displays as [1 <text/plain; UTF-8 (7bit)>] and [2 <text/html; UTF-8 (quoted-printable)>]
Jumping to the message buffer, and putting cursor on the appropriate button,
C-c C-t C-c runs the command mime-preview-toggle-content
which toggles display of that particular part.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have big markdown file. Is there any way to change /foo in my url by /bla. That is, I want to replace
[text](/foo/some-long-url/a.html)
for
[text](/bla/some-long-url/a.html)
(all ocurrences).
I know I could compile markdown file to html and use html parsers (like BeautifulSoup) to do that. But I want to do that, on the source file.
Prefered python or shell solutions.
I mean you can always replace "/foo" to "/bla" directly in the source using sed?
sed 's/\/foo/\/bla/' source.md >> destination.md
If it catches anything unwanted, you can just tweak the regular expression a bit to be more specific.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I have a text file with thousands of this code below which is almost identical apart from it has a different id number. I want to find and delete all instances of this code but I do not know how to do this as find and replace requires the text to be identical. How can I do this? And what text editor on a mac can do this? Eg:
<br><a target='_blank' href='http://example.com/home/details/indexid/1101372'>Read More</a>
<br><a target='_blank' href='http://example.com/home/details/indexid/1101337'>Read More</a>
Use any text editor that allows you regular expression replace. E.g. Sublime Text.
Then do replace with <br><a target='_blank' href='http:\/\/example\.com\/home\/details\/indexid\/\d+'>Read More<\/a>
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
When I compile and run example programs from OpenGL SuperBible under Linux no console window is created and as a result I can't see any text messages. Here by text messages I mean the output of printf function. This does happen under Windows - running exe opens a console window alongside the rendering window and all text messages appear in that console window.
How to I get console message printed into terminal window under Linux?
Run it in a terminal window, you'll then see the output.
If you don't see any output, check out the command line options (you'll probably have to pass -h or --helpor something as argument).
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm printing to screen a long text file that scrolls very very quickly on my screen, is there a way to slow down the scrolling? In other words is there a system setting that controls the speed at which output is displayed to screen (OSX/Linux).
Simple answer: No.
Extended version: There are other solutions. You could pick from one of the following:
Use pipes. Using pipes allows you to redirect terminal output and to review it in your own speed. The appropiate symbol is |. Redirect the output to programs like less ore more. Both allow you to scroll through the output via pressing return, you can exit any time by pressing q. For instance, for handling a long directory listing, you could use
ls | more
Redirect your output into a file. If your output is cached in a file, it's persistent and allows you to open it with an editor of your choice to view (and edit) it. The symbol is >.
touch log.txt # create the file
ls > log.txt
nano log.txt # use nano text editor to view
script allows you to record entire terminal sessoins. This might be an overkill for your use-case, but is really useful. From the man page:
script makes a typescript of everything printed on your terminal. It is
useful for students who need a hardcopy record of an interactive session
as proof of an assignment, as the typescript file can be printed out
later with lpr(1).
Use less to page through files; you can page back and forth, search, etc.
xterm has limited control over scrolling speed; most other terminal emulators have none, because that's the wrong way to step through a file when you can use a program like less to filter the output.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I'm developing simple game that load map form txt which format something like this:
# Map file for tile-based game
# (Lines that start with '#' are comments)
# The tiles are:
# (Space) Empty tile
# A..Z Tiles A through Z
# s Star
# 1 Bad Guy 1
# 2 Bad Guy 2
2 IAJ ssssss 1 1
IABABAELFBABABABABABABABABABABABABABABABABABABABABABABABABABABABJ
LMLMLMCKDLMLMLMLMLMLMLMLMLMLMLMLMLMLMLMLMLMLMLMLMLMLMLMLMLMLMLMLM
KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
Where i can find simple map editor like this? Simple map editor
thx
You're not going to find an existing editor that writes to your specific file format, but tile map editors like Tiled write to a simple file format that is easy for you to parse. Another tile map editor is Mappy.