News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

MasmED and C Files

Started by Shooter, May 17, 2012, 06:15:15 PM

Previous topic - Next topic

Shooter

Trying to search the forum for "C Programming" files doesn't exactly yield much due to the "c" being in a ton of words.

Also, I apologize if this is in the wrong part of the forum.


  • Is there a way to import, even just to view, a C file (foobar.c) into MasmED Version 1.2.0.0?

      I know most C files can be viewed in a standard text editor, but I've got my hands on a few that aren't easily viewed due to special characters, and opening them as "All Files" with MasmED causes a truncation to take affect after displaying everything on one line.

[li]Is there an addon/plugin that can take C files in directly?
[/li]
[/list]

(Also, is there a set of instructions to follow as to inserting lists into a post here on the forum? It took me forever to figure out how to do just this simple list, but I wanted numbering so people could easily refer to Item #1 or Item #2.)

Thanks a bunch,
-Shooter
Never use direct references to anything ever. Bury everything in
macros. Bury the macros in include files. Reference those include
files indirectly from other include files. Use macros to reference
those include files.

jj2007

Hi Shooter,

What exactly is the problem there? C files in Unix/Linux format, i.e. Lfs instead of CrLfs? Unicode? UTF8? Special characters should not be a problem for most editors...

Can you zip a sample and post it here?

dedndave

he is probably refering to line-feed with no carriage return
i have seen a number of them - lol

hfheatherfox07

#3
I would not be the same (foobar.c) that I just tried Goggling ?

7th post down


Spare us this virus crap.


LOL  :tdown


Sorry hutch ....

Shooter

Here is one file that I couldn't open in Notepad.
Never use direct references to anything ever. Bury everything in
macros. Bury the macros in include files. Reference those include
files indirectly from other include files. Use macros to reference
those include files.

dedndave

yah - line feeds without carriage returns   :P

NotePad++ opens it with no problem - and can reformat it for you (Edit menu - EOL Conversion)
http://notepad-plus-plus.org/

Shooter

Quote from: dedndave on May 18, 2012, 03:56:58 PM
yah - line feeds without carriage returns   :P

NotePad++ opens it with no problem - and can reformat it for you (Edit menu - EOL Conversion)
http://notepad-plus-plus.org/

Thank you!!  :U
Never use direct references to anything ever. Bury everything in
macros. Bury the macros in include files. Reference those include
files indirectly from other include files. Use macros to reference
those include files.

jj2007

Opens fine in RichMasm. I just resaved it - now it will open in normal Notepad.

MichaelW

It views correctly under SciTE, and after using the Convert Line End Characters option and saving it, it views correctly with Notepad.
eschew obfuscation

Shooter

Why doesn't it open correctly in MasmED?
Never use direct references to anything ever. Bury everything in
macros. Bury the macros in include files. Reference those include
files indirectly from other include files. Use macros to reference
those include files.

jj2007

Good question. I can't speak for the others, but RichMasm and qEditor use the RichEdit control, which apparently sets automatically the right switches.

MichaelW

Perhaps MasmEd is keying on the CR (that may not be present) instead of the LF (that should always be present).
eschew obfuscation


mineiro

With this version of MasmEd opened, click on menu "File","Open as Hex", and point to that file.
Click on menu "Edit","Replace", in field "find what" put "0a" and field "replace" put "0d0a". Click in "Hex" inside "Type" group.
Click on button "Replace All", and save your file. After, close it.
Now your file is not truncated.
To reverse to original, Find for "0d0a" and Replace to "0a" in hex mode.

MasmEd version 1.0.4.0 handle fine these files.

Shooter

Quote from: mineiro on May 19, 2012, 04:09:13 AM
With this version of MasmEd opened, click on menu "File","Open as Hex", and point to that file.
Click on menu "Edit","Replace", in field "find what" put "0a" and field "replace" put "0d0a". Click in "Hex" inside "Type" group.
Click on button "Replace All", and save your file. After, close it.
Now your file is not truncated.
To reverse to original, Find for "0d0a" and Replace to "0a" in hex mode.

MasmEd version 1.0.4.0 handle fine these files.

Thanks!!  :U
Never use direct references to anything ever. Bury everything in
macros. Bury the macros in include files. Reference those include
files indirectly from other include files. Use macros to reference
those include files.