Μετάβαση στο κύριο περιεχόμενο

The reality and the future of software engineering

Counting Words, Characters and Lines with Notepad++

One of the best text editors in Windows is Notepad++ as it is lightweight, it provides a wealth of useful functionality –let alone the possible extensions through plugins.

File Summary


A useful feature of Notepad++ is that you can easily get a view on the size metrics of the document you are currently working on (characters, words, lines, etc). However, the menu is not that intuitive on finding that capability. So in order to get the above values you should go to:

View >> Summary…



The summary contains the following:
  • Full path
  • Created
  • Modified
  • File length (in byte)
  • Characters (without blanks)
  • Words
  • Lines
  • Current document length


Selected Area Summary

Nevertheless, the above summary provides file-level statistics and it may only provide the number of bytes and characters of a selected area. In order to count the word, characters, lines, etc. for just a selected part of the file you can install and use the TextFX Character plugin through the Plugin Manager:

Plugins >> Plugin Manager >> Show Plugin Manager



Then, at the Available tab select the TextFX Character plugin and install it. You may be required to restart the application. Afterwards select a text range and use the following menu:

TextFX >> TextFX Tools >> Word Count



The window that pops up provides the following information:
  • Words
  • Characters (no spaces)
  • Characters
  • UTF-8 Characters
  • UTF-8 Efficiency
  • Lines
  • Longest Line
  • Shortest nonblank line
  • Nonblank lines

Σχόλια

  1. useful information on topics that plenty are interested on for this wonderful post.Admiring the time and effort you put into your b!.. https://charactercount.org

    ΑπάντησηΔιαγραφή
  2. Great articles and great layout. Your blog post deserves all of the positive feedback it’s been getting. this

    ΑπάντησηΔιαγραφή

Δημοσίευση σχολίου

Δημοφιλείς αναρτήσεις από αυτό το ιστολόγιο

Format / beautify JSON strings fast and easy

If you are a Web developer you will have to handle JSON strings, for developing, debugging and testing applications and APIs. During theses processes you will also have to use JSON strings that are copied for a HTTP sniffing/dumping tool (e.g. the developer tools of your browser) to analyse them, present them or share them. In that case, you will need to beautify them so that they become human friendly and readable. How do you do that fast and efficiently? OK, there may be a trillion different ways, and almost all IDEs that have some respect for themselves provide such JSON formatting functionality. But IDEs are heavy, and you typically will not create a new file to copy and paste the JSON string to beautify it and then discard it. I've seen many people resorting to "online" formatting tools (i.e. javascript-based formatters), but do you really need to do that (plus, you may be "sharing" you data without realizing it)? Notepad++ to the rescue again!  ...

Visual Studio 2015 and Git: part 1, cloning a repository

So, your manager sent you a URL and told you to go fix that little C# library that causes all that trouble, which, by the way, is hosted on a git server somewhere online. You have to send him back the new dll ASAP so that his promotion is not at stake. The bad news is that you have no clue how you do that -after all you are a Java developer and use SVN. The good news is that you found this blog. Worry no more, this 6-post-long quick guide is here for you to walk you through using the Visual Studio 2015 Git plugin to effortlessly accompish the following things: 1. clone a repository (presented in this post) 2. create a branch 3. commit changes 4. merge branches 5. pull changes from the repository 6. push your commited changes to the repository The idea here is to help beginners use the VS2015 Git plugin to quickly set up their environment so that their managers get their promotions and they skip studying the command-line git dissertation help pages or wandering thro...