This plugin combines a simple LaTeX word count python script that I wrote in 2009, the basic plugin structure taken from Naomichi Yamakita's string_counter, as well as changes and fixes submitted by GitHub contributors. Sublime Text's scope_name() function could potentially be used to produce more robust stripping of LaTeX commands than the current regexp-wizardry.If anyone's actually using this plugin and would like this feature just let me know and I'll add it! A real-time word count displayed in the status bar a la WordCount would be nice and not too hard to implement.Adding support for other ST-recognised markup languages should be pretty straightforward, have a look here to see how it's done for LaTeX and chip in!.Have a look at the available config options in Preferences -> Package Settings -> LaTeX Word Count to customise what gets counted. The plugin ignores the preamble, abstract, formulas, captions, and supports excluding headers, footnotes and appendices. The main purpose of this plugin was to support reliable word counts for files with LaTeX markup. On a Mac, you'll need to copy and paste the settings from Settings - Default to Settings - User and edit from there. In the word-countsettings file that is opened, enter your Word Count settings. Select either Settings - Default or Settings - User. The default key binding is Control + Shift + C LaTeX support Select Preferences Package Settings Word Count. Index 0 corresponds to the most recent command, -1 the command before that, and so on. Top posts january 31st 2016 Top posts of january, 2016 Top posts 2016. Returns the command name, command arguments, and repeat count for the given history entry, as stored in the undo / redo stack.
#Sublime text word count code
A community about the Sublime Text code editor. Go to Tools -> Word Count to display word, character and line counts for the current selection, or for the entire file if nothing is selected. Id like this: wow wow nice nice nice neat cool cool To be transformed into: 2 wow 3 nice 1 neat 2 cool. LaTeX Word Count can be installed easily using Sublime Text Package Control. This Sublime Text plugin allows temporarily and persistently marking all occurrences of selected words in a color multiple marked selections can be added. Right out of the box it supports tons of languages with options for Goto Anything, character and word count, jump to symbols and lines, batch editing, etc. A Sublime Text word and character count plugin for LaTeX and plaintext files. Sublime Text 3 is an advanced cross-platform text editor designed to provide users with a complete feature set for HTML editing among other languages.