Sublime Forum

Newbie trying to open new HTML files (Windows 7 64-bit)

#1

I’m relatively new to HTML and I’m taking a beginner’s course, Online. Our teacher wants us to use sublime text 2 but when I tried to open up his sample course files, which are HTML, they don’t display properly. They show rows and rows of four digit numbers In columns that go on down the page rather than the text which is supposed to be displayed.The files themselves are composed of text such as the menu of a fictional restaurant, not rows of numbers.

I’m trying to figure out why they don’t display properly or whether I’m looking at the wrong tab or something. As a temporary measure, I’ve been using WordPad as my text editor and Internet Explorer as my browser and their displaying properly in there showing paragraph text and headings and so forth, Just as it should. What am I doing wrong With sublime text 2? I still want to know how sublime text works, it looks like a cool editor. I’m using Windows 7 64-bit. Can you please help?

I appreciate help as soon as possible because I’m getting behind in my classes. I would really like to know how to use your program but the first step is being able to read the content. Please let me know if you need any additional information.My teacher has been of no help in this regard.What are the rows of numbers and how can I get it to show me the true content?

Thank you very much for your time and attention.

0 Likes

#2

Sorry you’re having troubles and welcome to the forum. What you’re seeing is your file in “hexdump” mode, which Sublime will often fall back to if the files contain any non-printable characters. This probably means that the files you’re trying to open are incorrect in some way since HTML files should not contain these characters.

Assuming the HTML opens correctly in your browser, a simple workaround is to open in the browser and save the file (select just HTML, not HTML complete or web page complete). The browser will save out a new version of the file without any of the extraneous nonprinting characters, which should open fine in Sublime.

It might also be useful to find out why the files you’re opening contain nonprintable characters, as they shouldn’t. I would expect your teacher to supply you with files that contain just HTML text.

The way Sublime handles nonprintable characters is less than ideal but represents an edge case that can be easily worked around. It would be nice to have a few view modes, say a “literal” view mode that shows all nonprinting characters as etc.

0 Likes