开源软件名称:django-ace/django-ace开源软件地址:https://github.com/django-ace/django-ace开源编程语言:JavaScript 99.9%开源软件介绍:django-aceUsagefrom django import forms from django_ace import AceWidget class EditorForm(forms.Form): text = forms.CharField(widget=AceWidget) Syntax highlighting and static analysis can be enabled by specifying the language: class EditorForm(forms.Form): text = forms.CharField(widget=AceWidget(mode='css')) Themes are also supported: class EditorForm(forms.Form): text = forms.CharField(widget=AceWidget(mode='css', theme='twilight')) All options, and their default values, are: class EditorForm(forms.Form): text = forms.CharField(widget=AceWidget( mode=None, # try for example "python" theme=None, # try for example "twilight" wordwrap=False, width="500px", height="300px", minlines=None, maxlines=None, showprintmargin=True, showinvisibles=False, usesofttabs=True, tabsize=None, fontsize=None, toolbar=True, readonly=False, showgutter=True, # To hide/show line numbers behaviours=True, # To disable auto-append of quote when quotes are entered )) Install
Example ProjectThere's an example project included in the source, to try it do: cd example/ virtualenv .env . .env/bin/activate pip install -e .. ./manage.py makemigrations app ./manage.py migrate ./manage.py runserver Then browser to Change logv1.0.11
v1.0.10
v1.0.9
v1.0.8
v1.0.7
v1.0.6
v1.0.5
v1.0.4
v1.0.2
v1.0.1
v1.0.0
![]() |
2022-08-15
2022-08-17
2023-10-27
2022-09-23
2022-08-13
请发表评论