You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ace-d...@googlegroups.com
Hi,
I use ACE to "pretty print" code snippets on a web page. It is configured as read-only, the snippets are not editable. It is a very good solution even only to display code.
The only problem I have is that I do not want to have a fixed-size text area to write code, like an editor. I want to display the code entirely, using exactly the vertical space needed. Whether the code is 1-line long or several hundred of lines, I would like ACE to use exactly the vertical space needed, depending on the number of lines to display.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ace-d...@googlegroups.com
Brilliant, it works great, thank you!
The only thing I could not solve is to make it use a horizontal scrollbar when the text is larger than the page. From your example, I would have expected `trim: true` to do exactly that, but neither false or true change anything. See for instance the last code snippet in the following page (yes, every snippet is there twice, once using the old version, once with the version based on your links):
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ace-d...@googlegroups.com
trim is for trimming whitespace from textcontent of the div
to use scrollbar add css
.ace_static_highlight {
white-space: pre;
overflow: auto;
}
i can also add wrap option for this
Florent Georges
unread,
May 15, 2015, 9:54:21 AM5/15/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ace-d...@googlegroups.com
Thank you! I've added it to the CSS, and have checked it is applied
to the generated div element, but its stays as it is (no horizontal
scrollbar). Tried on Firefox and Chrome:
http://test.h2oconsulting.be/blog/oxygen-scala-plugin-repo.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ace-d...@googlegroups.com
On Fri, May 15, 2015 at 5:53 PM, Florent Georges <fgeo...@gmail.com> wrote:
nk you! I've added it to the CSS, and have checked it is applied
to the generated div element, but its stays as it is (no horizontal
scrollbar). Tried on Firefox and Chrome: