Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/20tab/twentytab-highlighter
A django app permits to highlight the searched words (self.query) in a long text and truncates it, counts number of chars == max_length
https://github.com/20tab/twentytab-highlighter
Last synced: 21 days ago
JSON representation
A django app permits to highlight the searched words (self.query) in a long text and truncates it, counts number of chars == max_length
- Host: GitHub
- URL: https://github.com/20tab/twentytab-highlighter
- Owner: 20tab
- License: mit
- Created: 2014-02-09T14:58:58.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-10T12:17:03.000Z (almost 11 years ago)
- Last Synced: 2024-11-15T17:50:32.966Z (about 1 month ago)
- Language: Python
- Size: 145 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
twentytab-highlighter
=====================A django app permits to highlight the searched words (self.query) in a long text and truncates it, counts number of chars == max_length
## Installation
Use the following command: pip install twentytab-highlighter
## Configuration
```py
INSTALLED_APPS = {
...,
'highlighter',
...
}```
## Usage
In your html template
```html
{% load highlight_tags %}
{{a_very_long_text|highlight:"word"}}
```