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

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

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

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

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

Software Engineering Stories blog: reborn

Well, to be honest, a few of years ago I created this blog with one primary intention: web logging software engineering stories that were taking place on the field.   Being an active software engineer/programmer/developer or code monkey, I was always spending time to trivial things that would be executed, forgotten and at some point needed to be rediscovered (or even reinvented) again and again. Or sometimes to inefficient approaches that myself or fellow programmers were following for which, at some point, I found a faster, easier or simpler way of executing them. Ultimately this blog was supposed to start with documenting trivial day-to-day operational task optimizations, or hacks, and proceed to more abstract software design or architecture discussions. And then it was abandoned due to a number of reasons. But now I'm back and excited to add useful, up-to-date content of software engineering stories, tricks and even unconventional  ways to accomplish this. As technologies a

Creating a user registry - design and development tips based on modern guidelines and standards [Part 1: Introduction]

Sooner or later, it is almost inevitable that a software engineer comes across the challenge of creating a user registry to store users, user attributes, user credentials and authentication / authorization activities. It is a very common need since most applications, especially  Web and mobile  ones,  require such functionality, however there are quite a few pi tfalls in building a secure registry that will resist external and internal attacks. And it will attract attackers since it is one of the most critical component  of an application / platform  were sensitive data are stored. Nowadays, there are offerings by cloud providers to create your user registry on their platforms or use OAuth to accept users from other applications, instead of storing their credentials in your premises. Also, there are of course, COTS solutions to run on-premises. Such solutions are definitely a valid way to avoid a significant number of concerns that you have when you build and maintain your own user reg