Non desired code change by Bluegriffon

354 views
Skip to first unread message

Gilles Ehrentrant

unread,
Jan 30, 2017, 8:09:58 AM1/30/17
to bluegriffon
Hello,
I am a new user of Bluegriffon (thanks to the developper for all the work!). I don't know if it's a bug or a bad using from me but the software automatically change the code. For exemple when I open an .css it insert html code in it, like this :
<html>
 
<head>
   
<meta content="text/html; charset=windows-1252" http-equiv="content-type">
   
<link rel="alternate stylesheet" type="text/css" href="resource://gre-resources/plaintext.css"

     
title="Retour à la ligne automatique">
 
</head>
 
<body>
   
<pre>@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,900");
@import url("font-awesome.min.css");

/*
        Big Picture by HTML5 UPp
        html5up.net | @ajlkn
        Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/

/* Reset */

        html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
                margin: 0;
                padding: 0;
                border: 0;
                font-size: 100%;
                font: inherit;
                vertical-align: baseline;
        }

        article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
                display: block;
        }

        body {
                line-height: 1;
        } etc.................

Is it a bug ?? or can I change this somewhere or is it a bad using comming from me?
Thanks.

Gilles E
Saisissez le code ici...


Joeg

unread,
Jan 30, 2017, 4:43:55 PM1/30/17
to bluegriffon
BlueGriffon is a HTML editor. You cannot write style sheets like this. Instead, use the style sheets panel in the Panels menu.

Greg Chapman

unread,
Jan 31, 2017, 11:43:58 AM1/31/17
to blueg...@googlegroups.com
Hi,

On 30/01/17 12:57, Gilles Ehrentrant wrote:
> I am a new user of Bluegriffon (thanks to the developper for all the
> work!). I don't know if it's a bug or a bad using from me but the
> software automatically change the code. For exemple when I open an
> .css it insert html code in it, like this :
As Joeg says, you cannot open a CSS file in the main window. He might
have better described BlueGriffon as a "page editor". You open the page
(an HTML or PHP file) in the main window then, provided your stylesheet
is embedded or linked to the opened page then you can, as he says, edit
any CSS stylesheet via the Stylesheets Panel.

There's a reason I call it a "Page editor" not an "HTML editor". You
edit the page. The program edits the HTML! BlueGriffon passes all code
through its conformance checker. It will always write code generated by
your actions in the WYSIWYG interface or entered as source, according to
the rules within the checker.

If you are fussy about the style and indentation, etc, of code generated
and want it to conform to your preferred coding style, then BlueGriffon
is not for you.

--
Greg Chapman
http://www.gregtutor.co.uk
Still helping users of KompoZer but using BlueGriffon

Reply all
Reply to author
Forward
0 new messages