RDT doesn't format very well

B

bo

code like this:

while i < items.size do
9.times do |x|

ret<< CGI::unescapeHTML(item)

if item == 'something'
break
end
end
end

if I move away the space character preceding CGI:: and format, the
result would be:

while i < items.size do
9.times do |x|

ret<<CGI::unescapeHTML(item)

if item == 'something'
break
end
end
end

could anyone tell me how to make RDT format better?
 
K

Karl von Laudermann

bo said:
if I move away the space character preceding CGI:: and format, the
result would be:

while i < items.size do
9.times do |x|

ret<<CGI::unescapeHTML(item)

if item == 'something'
break
end
end
end

If you remove the space preceding "CGI", the formatter is probably
interpreting "<<CGI" as the start of a "here document". Therefore the
following lines are being treated as literal text, not code. So you
should probably leave the spaces in.
 
B

bo

thanks for replying. I've found this the main problem for formating and
syntax highlight. vim has the same bug. it seems common for editors.
not a big deal though
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,675
Latest member
RollandKna

Latest Threads

Top