You are here: PSPad forum > Developer forum - new builds > PSPad unicode 4.5.2 (2231) English

PSPad unicode 4.5.2 (2231) English

Goto Page: Previous1 2 3 4 5 6 Next

#41 Re: Toolbars gone

Posted by: pspad | Date: 2006-08-16 15:42 | IP: IP Logged

normally:
Likely something screwy on my end, but I can't figure it out. Since updating to this newest version, all of my toolbars are gone. They're all checked off in the View menu, but they don't show up. I've tried going back to the stable version and they still won't show up. I've tried installing to a totally new directory and they still don't show up. I've gone through the settings and can't find anything that would (obviously) turn them off.

So... where have I screwed up? smiling smiley

Thanks!

Menu View / Toolbars / Show/hide panel (F2)

Options: Reply | Quote | Up ^


#42 Re: PSPad unicode 4.5.2 (2231) English

Posted by: Yuval | Date: 2006-08-17 04:25 | IP: IP Logged

gf_gollum:
Small point. The current installer for the none beta product installed to \program files\PSPad editor\ by default - yet the CAB files have a directory tree based round PSPAD - Can the none beta installer go back to using PSPad as a folder name - then uprgades would be simpler.
Thx
Graham

Yeah, I agree.
What will be "the official" folder name then?
Suppose I want to rename my "PSPad editor" folder to "PSPad" - is there anywhere else I'd need to change beside my shortcuts? (ini files, user-account folders, etc...)
Meanwhile, you can just pack the CAB trees to PSPad's root (i.e. \Lang vs. PSPad\Lang...)
Thank you.

Options: Reply | Quote | Up ^


#43 PHP Class function did not drop in Class object as sub item in Code Explorer

Posted by: davidboh | Date: 2006-08-18 15:47 | IP: IP Logged

Hi,

I just want to report that Code Explorer did not display some Class object in PHP properly. I don't know why.

I have two classes in the code thumnail and Skin_group.
thumnail has two function it list correctly under thumnail class icon. But for Skin_group all the function is list under function.

I have attached to code for you to check. If you cannot produce the problem with this code. I can send you the files. Please let me know thanks.

<?php
class thumbnail
{ // BEGIN class thumbnail
// variables
var $base_loc; //store location of base dir
var $dText; // define to show highlight_content text or not
var $wrapSize; // wrap size for the title
var $titleStyle; // style class of the title

// constructor
function thumbnail($loc) { // BEGIN constructor
$this->base_loc = $loc;
$this->dText = 'showText'; // for now is always show text
$this->wrapSize = 200; // temporary fix the wrap text size
$this->titleStyle = 'LevelTwoLink'; //defaul this Leveltwo list style

} // END constructor

function html($list, &$table, $tn_sw, $tn_col) { // BEGIN function html

//get the thumbnail switch config to determine the thumbnail listing pattern
$table->elem['text_left'] ='';
$table->elem['text_right'] ='';
$table->elem['text_bottom'] ='';
$table->elem['tn_pic'] ='';

// assign the text location
if ($tn_sw == 'n') {
$text = &$no_way;
$table->elem['bottom_br'] = '';
} elseif ($tn_sw == 'l') {
$text = &$table->elem['text_left'];
$table->elem['bottom_br'] = '';
} elseif ($tn_sw == 'r') {
$text = &$table->elem['text_right'];
$table->elem['bottom_br'] = '';
} elseif ($tn_sw == 'b') {
$text = &$table->elem['text_bottom'];
$table->elem['bottom_br'] = '<br>'.'<br>';
}

//debug: print_r($list);

//future highlight text can be high
$col_counter = 1;

//process the thumbnail
foreach ($list as $ID=>$rec) {
$table->elem['break'] ='';
// wrap the text
$title = wordwrap($rec['title'], $this->wrapSize, "<br>", 1);
// construct the text information
$text = "<a href=\"{$rec['link']}\" class=\"$this->titleStyle\">$title</a><br>";
if ($this->dText == 'showText') {
$text .= '<div class="tn_text">'. $rec['highlight_content']. '</div><mg src="images/spacer.gif" width="1" height="5" alt="" border="0" hspace="0">';
}
$image = new esite_image($this->base_loc);
$image->url = $rec['link'];
$table->elem['tn_pic'] = $image->html($rec['tn_pic']);
// determine the terminating break for the column
if ($col_counter++ >= $tn_col) {
$table->elem['break'] = '</tr><tr>';
$col_counter = 1; // reset the column counter
}
$table->add();
}
return $table->result();
} // END function html

} // END class thumbnail

class Skin_group {
/*
Object to group a start, body, end structure taken from given html file
Example:
e.g.
$main_nav = new pg_group('template.html');
$main_nav->elem['item'] = '<img src="images/bn_help">';
$main_nav->add(); // add the item in the body
$string = $main_nav->result(); // return the table string.
*/
var $version = 1.1;
var $top; // top elements
var $bottom; // bottom elements
var $body; // body string with element implant.
var $body_result; // holds all the
var $elem; // element array

function Skin_group($template) {
// read the HTMl template file and get top, bottom and body string
if (empty($template) || !file_exists($template)) {
//fatal error cannot find the template
print $template . ' cannot be found.';
exit; //terminate immediately
} else {
// if template exist then use the template
// and read the content to var $html
$fcontents = file($template);
$size = sizeof($fcontents);
$last = $size - 1 ;
$this->top = $fcontents[0];
$this->bottom = $fcontents[$last];
for ($i=0; $i<$size; $i++ ) {
if ($i != 0 && $i < $last) {
$this->body .= $fcontents[$i];
}
}
}
// init the result storage
$this->body_result = '';
}//method Skin_group

function add() {
// method to add a new item body in the body section
// compile the elements into the body_result
// if there is no element defined this method will
// do nothing.
$html = $this->body;
if (sizeof($this->elem) >= 1) {
reset ($this->elem); // to be sure just reset the element array
while (list($key, $value) = each ($this->elem)) {
$match = '#' . $key;
$html = str_replace ($match, $value, $html);
}
$this->body_result .= $html;
}
}//method add

function result() {
// method compile and return the result html string
// compile the button
$string = $this->top;
$string .= $this->body_result;
$string .= $this->bottom;;
return $string;
}//method result

function clear() {
// clear all the elements added in the body section
$this->body_result = '';
}//method clear

}// class Skin_group

?>

Options: Reply | Quote | Up ^


#44 Re: PHP Class function did not drop in Class object as sub item in Code Explorer

Posted by: Jume | Date: 2006-08-21 02:38 | IP: IP Logged

it seems pspad doesnt handle correctly the "{" in the same line as class definition, try it yourself, put the "{" in the next line like this:

class xxxx_xxxx
{
....
}

Options: Reply | Quote | Up ^


#45 Re: PHP Class function did not drop in Class object as sub item in Code Explorer

Posted by: davidboh | Date: 2006-08-21 10:53 | IP: IP Logged

This same PHP code works in PSPad 4.5.2 (2215).

So just to let the developer know, where to look for the bug. Many PHP uses "function something() {". It will be difficult to change a few thousands lines of code because editor cannot decode { properly.

Options: Reply | Quote | Up ^


#46 PHP string stops syntax highlighing

Posted by: CCRDude | Date: 2006-08-22 11:03 | IP: IP Logged

Tried this up to current build 2231.

I have the following php code:

function my_strip_html_tags($text)
{ $search = array ("'<script[^>]*?>.*?</script>'si", // Strip out javascript
"'<[\/\!]*?[^<>]*?>'si", // Strip out html tags
"'([\r\n])[\s]+'", // Strip out white space
...

The syntax highlighter seems to think that the ?> ends the php code, and stops highlighting right after that. While actually it's just part of a string.

Options: Reply | Quote | Up ^


#47 Log file unreadable

Posted by: riechert | Date: 2006-08-22 22:04 | IP: IP Logged

Using PSPad external compiler to verify an AutoIt script and then convert to an exe. With this latest 2231 version, the returned log file as shown in the log window is all messed up. It looks like multiple characters overwritten in the first column.

Edited 2 time(s). Last edit at 2006-08-22 22:06 by riechert.

Options: Reply | Quote | Up ^


#48 Re: Log file unreadable

Posted by: Joe Belmaati | Date: 2006-08-23 18:48 | IP: IP Logged

I had this happen when running a php script. I re-booted PSPad and the problem went away. It happened that one time only (Build 2231)

Options: Reply | Quote | Up ^


#49 Re: PSPad unicode 4.5.2 (2231) English

Posted by: vincevg2 | Date: 2006-08-24 17:32 | IP: IP Logged

Hi,
Thank's for your job
It's unable to rename project or directory in the project manager.

best regard

Options: Reply | Quote | Up ^


#50 Re: PSPad unicode 4.5.2 (2231) English

Posted by: pspad | Date: 2006-08-24 18:12 | IP: IP Logged

vincevg2:
Hi,
Thank's for your job
It's unable to rename project or directory in the project manager.

best regard

I have no problem wih rename directory. Can you write me ste by step how to simulate your problem ?

Options: Reply | Quote | Up ^


Goto Page: Previous1 2 3 4 5 6 Next





Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR