This is kind of a weird question so I posted this in off topic.
I have my own custom cfg, and one of the main components is a file called binds.cfg
I created this file from scratch because I wanted a neatly organized file that I could show to other people without them having to actually download my cfg and open it via notepad. I do this by uploading the file to my dropbox/public folder and sharing the public link.
The problem is that when viewing the file in a web browser, the formatting is off.
Example:
Here is what the file looks like in notepad
https://dl.dropboxusercontent.com/u/43946806/binds.png
Notice the formatting in the "Voice Command Index" section, it's neatly aligned vertically.
Here is what it looks like in my web browser
https://dl.dropboxusercontent.com/u/43946806/binds1.png
Can someone please help me figure out how to edit this in notepad to make the formatting match in a web browser?
If it's too much of a hassle to help on the forum and someone wants to add me on steam to help, I'll make it worth your time by giving you an item or something that you'd like.
This is kind of a weird question so I posted this in off topic.
I have my own custom cfg, and one of the main components is a file called binds.cfg
I created this file from scratch because I wanted a neatly organized file that I could show to other people without them having to actually download my cfg and open it via notepad. I do this by uploading the file to my dropbox/public folder and sharing the public link.
The problem is that when viewing the file in a web browser, the formatting is off.
Example:
Here is what the file looks like in notepad
[img]https://dl.dropboxusercontent.com/u/43946806/binds.png[/img]
Notice the formatting in the "Voice Command Index" section, it's neatly aligned vertically.
Here is what it looks like in my web browser
[img]https://dl.dropboxusercontent.com/u/43946806/binds1.png[/img]
Can someone please help me figure out how to edit this in notepad to make the formatting match in a web browser?
If it's too much of a hassle to help on the forum and someone wants to add me on steam to help, I'll make it worth your time by giving you an item or something that you'd like.
The short answer is that if you want to line text up vertically and have it look right for *everybody* that sees it, you must do all the alignment with spaces instead of with tabs.
I don't use Notepad++, but this is probably what you need:
http://stackoverflow.com/questions/455037/notepad-tabs-to-spaces
The short answer is that if you want to line text up vertically and have it look right for *everybody* that sees it, you must do all the alignment with spaces instead of with tabs.
I don't use Notepad++, but this is probably what you need:
http://stackoverflow.com/questions/455037/notepad-tabs-to-spaces
useofThe short answer is that if you want to line text up vertically and have it look right for *everybody* that sees it, you must do all the alignment with spaces instead of with tabs.
I tried doing this, and it simply didn't work :(
[quote=useof]The short answer is that if you want to line text up vertically and have it look right for *everybody* that sees it, you must do all the alignment with spaces instead of with tabs.[/quote]
I tried doing this, and it simply didn't work :(
in your notepad file, change the font to a monospace one and re-adjust everything. while it may be a little tedious, the majority of players who would download that cfg will be viewing it in a monospace text editor once they do so, so having the webpage display whichever font you're using will be irrelevant after the users download the file (making it annoying to edit in most cases)
in your notepad file, change the font to a monospace one and re-adjust everything. while it may be a little tedious, the majority of players who would download that cfg will be viewing it in a monospace text editor once they do so, so having the webpage display whichever font you're using will be irrelevant after the users download the file (making it annoying to edit in most cases)
You're right. Looking more closely, it looks like you have done all your alignment with a proportional font. You need to set your text editor to use a monospace (all characters have the same width) font like Courier New or Consolas.
edit: nixnyte beat me to it.
edit2: For what it's worth, you could do all that alignment automatically in emacs by selecting the region with all the voice menu command comments, then typing:
C-u M-x align-regexp <RET> // <RET> <RET> <RET> y
You're right. Looking more closely, it looks like you have done all your alignment with a proportional font. You need to set your text editor to use a monospace (all characters have the same width) font like Courier New or Consolas.
edit: nixnyte beat me to it.
edit2: For what it's worth, you could do all that alignment automatically in emacs by selecting the region with all the voice menu command comments, then typing:
C-u M-x align-regexp <RET> // <RET> <RET> <RET> y
useofYou're right. Looking more closely, it looks like you have done all your alignment with a proportional font. You need to set your text editor to use a monospace (all characters have the same width) font like Courier New or Consolas.
edit: nixnyte beat me to it.
nixnytein your notepad file, change the font to a monospace one and re-adjust everything. while it may be a little tedious, the majority of players who would download that cfg will be viewing it in a monospace text editor once they do so, so having the webpage display whichever font you're using will be irrelevant after the users download the file (making it annoying to edit in most cases)
THANK YOU GUYS. Hopefully this will work.
While changing my font, I noticed these options (in the black square.)
Would any of these settings help?
Edit: apparently I have to at least enable global font for the font change to even take effect.
Edit.1: It works perfect now. Thanks a lot guys.
[quote=useof]You're right. Looking more closely, it looks like you have done all your alignment with a proportional font. You need to set your text editor to use a monospace (all characters have the same width) font like Courier New or Consolas.
edit: nixnyte beat me to it.[/quote]
[quote=nixnyte]in your notepad file, change the font to a monospace one and re-adjust everything. while it may be a little tedious, the majority of players who would download that cfg will be viewing it in a monospace text editor once they do so, so having the webpage display whichever font you're using will be irrelevant after the users download the file (making it annoying to edit in most cases)[/quote]
THANK YOU GUYS. Hopefully this will work.
While changing my font, I noticed these options (in the black square.)
Would any of these settings help?
[b]Edit[/b]: apparently I have to at least enable global font for the font change to even take effect.
[b]Edit.1[/b]: It works perfect now. Thanks a lot guys.
By the way, if anyone wants to check out my cfg files, here are the links to my aliases and binds - I keep them in separate files cause I like them organized like that.
https://dl.dropboxusercontent.com/u/43946806/aliases.cfg
https://dl.dropboxusercontent.com/u/43946806/binds.cfg
By the way, if anyone wants to check out my cfg files, here are the links to my aliases and binds - I keep them in separate files cause I like them organized like that.
https://dl.dropboxusercontent.com/u/43946806/aliases.cfg
https://dl.dropboxusercontent.com/u/43946806/binds.cfg
useofYou're right. Looking more closely, it looks like you have done all your alignment with a proportional font. You need to set your text editor to use a monospace (all characters have the same width) font like Courier New or Consolas.
edit: nixnyte beat me to it.
edit2: For what it's worth, you could do all that alignment automatically in emacs by selecting the region with all the voice menu command comments, then typing:
C-u M-x align-regexp <RET> // <RET> <RET> <RET> y
omg emacs :C
[quote=useof]You're right. Looking more closely, it looks like you have done all your alignment with a proportional font. You need to set your text editor to use a monospace (all characters have the same width) font like Courier New or Consolas.
edit: nixnyte beat me to it.
edit2: For what it's worth, you could do all that alignment automatically in emacs by selecting the region with all the voice menu command comments, then typing:
C-u M-x align-regexp <RET> // <RET> <RET> <RET> y[/quote]omg emacs :C