<commit_before>jQuery TextareaCounter
======================

.. image:: https://travis-ci.org/LeadSift/jquery-textareaCounter.png
   :target: https://travis-ci.org/LeadSift/jquery-textareaCounter

Forked from http://roy-jin.appspot.com/jsp/textareaCounter.jsp 


Config Options
--------------

+-------------------+-----------------------------------------------------------+
| Options           | Description                                               |
+-------------------+-----------------------------------------------------------+ 
| maxCharacterSize  | Define the maximum number of characters. Default is -1.   |
|                   | Limit characters only when maxCharacterSize > 0           |
|                   | default: -1                                               |
+-------------------+-----------------------------------------------------------+ 
| truncate          | Truncate the chars if maxCharachterSize exceeded          |
|                   | default: true                                             |
+-------------------+-----------------------------------------------------------+ 
| originalStyle     | Set original class style                                  |
|                   | default: 'originalTextareaInfo'                           |
+-------------------+-----------------------------------------------------------+ 
| warningStyle      | Set warning class style                                   |
|                   | If number of characters of user input is over the warning |
|                   | default: 'warningTextareaInfo'                            |
+-------------------+-----------------------------------------------------------+ 
| errorStyle        | Set error class style, triggers if truncate is false      |
|                   | and there are more than max chars in the text area        |
|                   | default: 'errorTextareaInfo'                              |
+-------------------+-----------------------------------------------------------+ 
| warningNumber     | char remaining before warningStyle is applied             |
|                   | default: 20                                               |
+-------------------+-----------------------------------------------------------+ 
| displayFormat     | keywords: #input, #max, #left, #words.                    |<commit_msg>Adding link to example code.<commit_after>jQuery TextareaCounter
======================

.. image:: https://travis-ci.org/LeadSift/jquery-textareaCounter.png
   :target: https://travis-ci.org/LeadSift/jquery-textareaCounter

Forked from http://roy-jin.appspot.com/jsp/textareaCounter.jsp 


Examples
--------

Examples of usage can be seen in `example/index.html <example/index.html>`_.


Config Options
--------------

+-------------------+-----------------------------------------------------------+
| Options           | Description                                               |
+-------------------+-----------------------------------------------------------+ 
| maxCharacterSize  | Define the maximum number of characters. Default is -1.   |
|                   | Limit characters only when maxCharacterSize > 0           |
|                   | default: -1                                               |
+-------------------+-----------------------------------------------------------+ 
| truncate          | Truncate the chars if maxCharachterSize exceeded          |
|                   | default: true                                             |
+-------------------+-----------------------------------------------------------+ 
| originalStyle     | Set original class style                                  |
|                   | default: 'originalTextareaInfo'                           |
+-------------------+-----------------------------------------------------------+ 
| warningStyle      | Set warning class style                                   |
|                   | If number of characters of user input is over the warning |
|                   | default: 'warningTextareaInfo'                            |
+-------------------+-----------------------------------------------------------+ 
| errorStyle        | Set error class style, triggers if truncate is false      |
|                   | and there are more than max chars in the text area        |
|                   | default: 'errorTextareaInfo'                              |
+-------------------+-----------------------------------------------------------+ 
| warningNumber     | char remaining before warningStyle is applied             |
|                   | default: 20                                               |
+-------------------+-----------------------------------------------------------+ 
| displayFormat     | keywords: #input, #max, #left, #words.                    |
{'fraction_non_alphanumeric': 0.3331266790659227, 'fraction_numerical': 0.0020665426741062203, 'mean_word_length': 0.6501875213092397, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 19, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1712072', 'n_tokens_mistral': 932, 'n_tokens_neox': 857, 'n_words': 220}