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.
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 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
When trying to export an SVG file with Chinese characters to PNG using Inkscape, the Chinese characters disappear. I use this command in Ubuntu:
inkscape /root/21.svg -e /root/1.png
Try creating another svg file and adding a simple text by example: 汉语 / 汉语
My svg:
My command:
inkscape Desktop/chinese.svg -e Desktop/test.png
My result:
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.
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
The default console in Ubuntu are white characters and purple background. I want to change it to green characters and black background, just like the old computer screens. I want to set all stuff to be green, including all files listed by "ls".(In the original console, different files may be shown in different colors, I do not want that).
What is more, how to set green characters in pure character environment? (Suppose I do not install X to my OS.)
Thanks a lot for your help.
Just edit your terminal profile.
gnome-terminal: Edit -> Profiles -> Edit
konsole: Settings -> Configure Profiles
Bash shows color in ls output using an alias. You can unset that command alias.
run unalias ls from command line, and colors in list command will become monochrome.
Add this line to your .bashrc file or .bashprofile so that it is set across your login sessions.
Changing console colors is very basic, a quick google will give you all steps what you need. For example this link.