Display the actual code in Notepad?

plutose -  
kevin76110 Posted messages 5350 Status Member -
Hello,
I don’t know what to do when I try to access a file and open it with Notepad to modify it; it just shows 3-letter characters in a big black rectangle, but there are also characters that aren’t even part of the alphabet. Another problem is that when I try to open a file larger than 100mb, it says the program is not responding and then it closes. So how can I display the actual code of the file without any bugs so that I can customize it? On the other hand, after some research, I know that it's impossible to do this for a .exe, but for the others, I know it's possible, but I haven't found an answer, so I'm asking for help here.

Thank you very much in advance for the answers (positive if possible).

13 answers

  1. eriiic Posted messages 24581 Registration date   Status Contributor Last intervention   7 281
     
    Good evening,

    To do what you want, you need a hexadecimal editor.
    You have NotePad++ (free) that can do that
    https://notepad-plus-plus.org/
    But you need to know what you're doing, when in doubt, work on a copy!

    eric
    3
  2. bobo
     
    I believe it's time to take your first serious programming courses (that is to say, let's forget VB, JavaScript, and the like).
    What you're looking for is to display the source code of the program from the program files. However, in most advanced languages (which are used to create complex and fast programs), this source code written by the programmer has been COMPILED by the compiler of said language.
    It is therefore absolutely not accessible (except with a lot of tricks): and fortunately, because that's how publishers jealously guard the trade secrets of the software they sell (a bit like a car that one couldn't open the hood).

    To experiment with the tinkering of the source code, you need to:
    * choose/install an "open source" software, or free software (a less explicit term, let's agree)
    * download the source code separately and read it (there's no problem there, it's a text file, sorry, tons of text files if you took OpenOffice or Gimp)
    * install a compiler for the used language and use it to create an alternative version of the program
    * DEBUG (you'll quickly understand this term)
    2
  3. plutose
     
    Finally, a response. Thank you for the link, but I already have this software. Now what I need to know is how to set up the hex editor with Notepad? But are you sure it's going to show the actual code?
    0
  4. plutose
     
    I found it, but I don't think it's that because I come across numbers below "address" and then I have +0 +1 +2 etc... So it can't be that since I still can't modify my file, do you not know?
    0
  5. plutose
     
    No, I've looked everywhere but there's no way to display the actual code in hexadecimal; it just removes the black rectangles and converts them into numbers, that's all, I'm not any further along, please help me :)
    0
  6. eriiic Posted messages 24581 Registration date   Status Contributor Last intervention   7 281
     
    You need to click on the H tool to switch to hex.
    On the left side of the window, the bytes of your file in hex, on the right side the corresponding ASCII code if it exists.
    You can edit on both sides
    But if you're surprised to find numbers with a hex editor, it's best to just forget about it...
    eric
    0
  7. plutose
     
    Yes, but there must be a way to get the real code, that is to say, code with text that we can understand and therefore modify. It's not impossible since there are those who modify an entire game by modifying just this kind of file.
    0
  8. eriiic Posted messages 24581 Registration date   Status Contributor Last intervention   7 281
     
    Who tells you that the texts were entered exactly as they are in the program??
    They may not be directly readable or may be placed in another file.
    0
  9. gris
     
    Hi, can you please reply to the others because I'm really interested too...
    0
  10. bobo
     
    I was just looking for how to switch to hex mode in Notepad++??? Where is the H mode? Is there a way to do some advanced stuff, and they’ve hidden this hexadecimal mode. Do you need a plugin?

    Thanks
    0
  11. Nicotchico
     
    To read the lines of code and thus be able to modify them, you need to use Eclipse software.
    Otherwise, I was wondering, when you want to create a web page and you have prepared your code in Notepad, how can you read it before putting it online, with which software???
    Thank you in advance for the answers.
    Nicolas
    0
    1. kevin76110 Posted messages 5350 Status Member 875
       
      Thank you for opening your own topic.

      Right-click on the page to open > Open with Firefox.
      0
  12. bobo
     
    It's good, I found the right plugin to install; it's strange that it's not included in the default installation.
    -1